Jump to content
Search Community

Recommended Posts

Posted

Hello,

 

As someone who has never really used Gsap in production, I'm struggling a little. The client would like something similar to https://wearemotto.com/about/, this section in the screenshot…

I have created this pen of my poor effort so far! 

 

Some pointers would be very much appreciated
 

Screenshot 2024-02-09 at 20.13.36.jpg

See the Pen XWGxrBN by grantsmith (@grantsmith) on CodePen.

Posted

Hi,

 

You should use the Horizontal Seamless Loop helper function:

https://gsap.com/docs/v3/HelperFunctions/helpers/seamlessLoop

 

Here is a demo that uses the helper function and the Observer Plugin to check the wheel event and speed up the loop and then return it to it's normal speed:

See the Pen zYaxEKV by GreenSock (@GreenSock) on CodePen.

Here you can learn more about the Observer Plugin:

https://gsap.com/docs/v3/Plugins/Observer/

 

Hopefully this helps.

Happy Tweening!

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