Jump to content
Search Community

Infinite vertical repeat that autoplays

Chriis test
Moderator Tag

Recommended Posts

  • Chriis changed the title to Infinite vertical repeat that autoplays
50 minutes ago, Chriis said:

Thanks, @Windpixel! My use case requires names to appear all at once that bleed to the top and bottom part of the screen

Ok, Well this might be a good place to start. I stumbled across a Horizontal Loop helper a few months back, so I just converted this to a vertical format.

For the moment, I have left the styling as I think its great to show whats happening. How the items are wrapped around, Ill do another pen in a second to switch out the box elements for some text elements like yours.

See the Pen rNRNmGr by windpixel (@windpixel) on CodePen

Link to comment
Share on other sites

Here ya go. I will leave the styling to you, hopefully that will get you there.

There is also a little feature in this code that I have left in because I think its cool, it will detect your scroll direction and reverse the direction of the items. Can be removed by tweaking the onupdate in the scroll trigger.

 

See the Pen xxBxdze by windpixel (@windpixel) on CodePen

  • Like 2
Link to comment
Share on other sites

Great job @Windpixel!

 

Just an FYI, there is a vertical version of the Endless Loop helper function:

https://gsap.com/docs/v3/HelperFunctions/helpers/seamlessLoop#vertical-loop

 

See the Pen MWXPgKm by GreenSock (@GreenSock) on CodePen

 

Here is a fork of your codepen that uses it:

See the Pen dyryJoZ by GreenSock (@GreenSock) on CodePen

 

Happy Tweening!

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