Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
AkhilRaja

ScrollTrigger Spin Animation

Go to solution Solved by GreenSock,

Recommended Posts

i created this basic scrolltrigger animation of spinning circle, its working fine but the problem im facing is when i do fast scroll then spin animation become snappy means its only play a single active "SectionTL1 2 3 4 5" gsap timeline.

what i want when i scroll its scroll smoothly like this 0 to 72, 72 to 144, 144 to 216, 216 to 288 as we scroll through each section but when i scroll fast for example at 144 "SectionTL3" and stop at 288 "SectionTL5" it should play like 144 rotation to 288. like right now suppose if we scroll fast and stop at "SectionTL5" it will only play 216 to 288 and i want it to play full smooth 0 to 288 spin animation.

i dont know how i can achieve that or what should i change in the existing codding to get the desire result i want. Thank you 

See the Pen WNEaYNP by AkhilRaja (@AkhilRaja) on CodePen

Link to comment
Share on other sites

  • Solution

That's because you're creating multiple conflicting animations when scrolling quickly (they're all trying to control #spin and #spin h1). 

 

You could create a new timeline when each ScrollTrigger is entered, overwriting the others and making it a dynamic effect, and you could probably simplify a lot of your code like this: 

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

 

Is that what you're looking for? 

  • Like 1
  • Thanks 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.
×