Jump to content
Search Community

Stacked cards from ScrollTrigger to Observer

matteoUribb test
Moderator Tag

Recommended Posts

Hi @matteoUribb welcome to the forum!

 

What have you tried already? Personally I would first rewrite your animation to a timeline, so that it works without ScrollTrigger and is just an animation. Here is an example of a similar looking effect, but with a timeline

 

See the Pen OJryLqp by mvaneijgen (@mvaneijgen) on CodePen

 

With a timeline you can easily .tweenTo() a specific point on the timeline, so with the Observer plugin you can do tl.tweenTo(5) to tween to the 5 second mark on the timeline on for example scroll up. You will of course have to find the points to which you want to animate to and increase and decrease that on the interactions you want to track. 

 

Hope it helps and happy tweening! 

 

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