Jump to content
GreenSock

todd.eagle

Horizontal scrolling content not working correctly

Moderator Tag
Go to solution Solved by PointC,

Recommended Posts

Hi!

 

I'm attempting to do a news ticker type scrolling animation across a web page, but it slows down at the end then resets.  I want it to scroll continuously uninterrupted.  No clue how to solve it.

 

Thanks!

 

Todd

See the Pen xxgwGNK by todd-eagle-the-looper (@todd-eagle-the-looper) on CodePen

Link to comment
Share on other sites

.to( ".q_layer_1" , tDuration, { x: -commentsWidth,  ease:"none", repeat: -1 } )

Happy tweening.

:)

 

  • Like 1
Link to comment
Share on other sites

Still a "no go".

 

The "ease: none" worked as intended(thanks!), but the content continues to reset.  Is there a way for the content to loop?  I would like the content to exit the left side of the page while also entering from the right.

 

The CodePen link in the original post has been updated with the most recent solution provided in this thread.

 

Thanks!

 

Todd

Link to comment
Share on other sites

  • Solution

Whoops. I think I only read half of your question. ;)

 

For stuff like that I usually just clone the node and animate them both to an xPercent of -100. This is a demo from another thread, but shows the same basic idea. It just has a hover speed/slow effect.

 

See the Pen ExgExxL by PointC (@PointC) on CodePen

 

Happy tweening.

:)

 

  • Like 2
Link to comment
Share on other sites

 

1 hour ago, PointC said:

For stuff like that I usually just clone the node and animate them both to an xPercent of -100. This is a demo from another thread, but shows the same basic idea. It just has a hover speed/slow effect.

 

Such a simple way to create a looping Carousel. Thanks for posting that Craig, I missed it the first time around.

 

 

  • Like 2
Link to comment
Share on other sites

Thanks Craig!

 

I was able to successfully implement in CodePen.

  • Like 1
Link to comment
Share on other sites

Glad to hear it worked for you. Happy tweening. :)

 

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