ezekielaquino / Marquee3000

Marquees for the new millenium
https://ezekielaquino.com/2019/marquee
MIT License
438 stars 81 forks source link

Toggle reverse based on scroll direction #30

Open elliottmangham opened 4 years ago

elliottmangham commented 4 years ago

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 commented 3 years ago

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