Jump to content
Search Community

I want to improve the animation that is already done in codepen and some scroll snap type function add to it.

adil17 test
Moderator Tag

Recommended Posts

Here is the example animation I want to achieve https://dribbble.com/shots/15292175-Product-Carousel-Experience

1. I want to make the animation  smooth like the example of dribble I shared above
2. it's not scrolling smooth on mouse wheel, like I think  if mouse is scrolled many times in one go it should only trigger one animation and don't go directly to next slides. 
here is the real code that you can modify 

See the Pen ExbLgVG by muhammadjunaid1 (@muhammadjunaid1) on CodePen

Please help me. 

  • Like 1
Link to comment
Share on other sites

You can set a numeric scrub value on your ScrollTrigger animation(s) to get a smoothing effect. Like scrub: 1 would make it take 1 second to "catch up". 


You might want to look into something like this where you don't even have any actual scrolling but instead listen for wheel/touch events to trigger things: 

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


Good luck!

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