Jump to content
Search Community

Animate product info when clicked on more info

kulderzipke test
Moderator Tag

Recommended Posts

Hey kulderzipke and welcome to the GreenSock forums!

 

The proper way to do this would be to go through each item and give it its own timeline/animation. Then in the click event for that item you can toggle the play state for the appropriate timeline. Here's how I'd set it up:

See the Pen rNOoLgp?editors=0010 by GreenSock (@GreenSock) on CodePen

 

I talk more extensively about this approach and other helpful tips to animate efficiently in my article on the subject.

  • Like 3
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...