Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle reverse based on scroll direction #30

Open
elliottmangham opened this issue Jun 23, 2020 · 1 comment
Open

Toggle reverse based on scroll direction #30

elliottmangham opened this issue Jun 23, 2020 · 1 comment

Comments

@elliottmangham
Copy link

elliottmangham commented Jun 23, 2020

Hi,

Is there any examples or guidance on toggling the reverse based on scroll direction (up/down) using Marquee3000?

Here is a site that does it: https://locomotive.ca/en

Similarly, it would be great to see if anybody has been able to adjust the speed temporarily based on current scroll speed, similar to https://index.studio/about.

Thank you,
Elliott

@LeoSeyers
Copy link

Hi,

Is there any examples or guidance on toggling the reverse based on scroll direction (up/down) using Marquee3000?

Here is a site that does it: https://locomotive.ca/en

Similarly, it would be great to see if anybody has been able to adjust the speed temporarily based on current scroll speed, similar to https://index.studio/about.

Thank you,
Elliott

Hello eliott,
lt's a late answer but I guess you can achieve that but updating the data-reverse property and hitting the update method.
You can easily get the scroll direction or scroll velocity by listening to the scroll event.

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants