locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.83k stars 1.12k forks source link

Add support for scroll delay #540

Open iojcde opened 9 months ago

iojcde commented 9 months ago

This pull request adds support for scroll delay in locomotive-scroll v5. The data-scroll-delay attribute can be set on the element to control the delay duration. If the attribute is not set, the element will scroll without delay.

Fixes #539

iojcde commented 9 months ago

@devenini @Jerek0 This seems to work now, are there any issues that need fixing?

tekigg commented 5 months ago

@devenini @Jerek0 +1ing this.