Jump to content
Search Community

How can I also implement marquee in this existing script?

Selim Rana test
Moderator Tag

Recommended Posts

Hi there!

 

I want to implement a marquee effect in this existing script with left or right-direction options. and I also want features for example if the user drags this slide right to left after that this will automatically marquee right to left and if the user drags this slide left to right after that this will automatically marquee left to right.
Can you please help me with this?

 

Note: all existing feature also works fine just need the marquee effect with left and right scrolling feature.
 

Thanks!

 

 

 

 

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

Link to comment
Share on other sites

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "here is my list of requirements....now please show me how to build it" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

What you're describing is entirely possible, but it just requires some custom logic. Like track the direction of dragging and then in the onThrowComplete, either play() or reverse() the looping timeline based on the direction. 

 

Good luck!

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