Jump to content
Search Community

Creating a Carousel

ebinabo test
Moderator Tag

Recommended Posts

Hey ebinabo. The main issue here is that you are trying to animate the original image from an opacity of 1 to opacity of 1, so naturally it you can't perceive the animation (because the value is always the same).

 

In general you should avoid using onCompletes to reset variables in your animations. It's a whole lot cleaner to create animations beforehand and just let them do their thing, controlling them with control methods as necessary. In fact, not doing so is one of the most common GSAP mistakes.

 

I might set it up along the lines of this:

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

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