Jump to content
Search Community

Struggling how to reverse my timeline to the beginning on hover

alechance test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hi everyone,

 

I'm trying to animate my banner that contains my images so it acts like a "gif" on hover, you can have a look at the first case study from this website https://justified.studio/. I thought reverse() was the solution. However I would like my timeline to go back to the beginning without changing one by one the opacity. 

 

Another question, is there a better solution to not use img:not(:first-child) in my loop? I would like my first image to show up as a preview, therefore my timeline animation would be applied from my second image.

 

Thank you for your help.

See the Pen ExdmGGG by alechance-the-decoder (@alechance-the-decoder) on CodePen

Link to comment
Share on other sites

  • 3 weeks later...

Regarding your second question, instead of using img:not(:first-child), you can consider assigning a separate class or data attribute to the images you want to animate. Then, you can target that class or attribute in your animation loop, excluding the first image. It should give you more control and flexibility. By the way, if you're interested in trading, you might want to explore meta trading 4 as a platform. It's widely used and offers various features and tools for traders. You can find more information about it online. It's always good to research different platforms and choose one that suits your trading style and preferences.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...