alexfoxy / lax.js

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.
MIT License
10.43k stars 491 forks source link

Animation delay #179

Closed zanarota closed 2 years ago

zanarota commented 2 years ago

Would there be a way to apply delays to the animations like Locomotive.js? I am a JS noobie... [https://locomotivemtl.github.io/locomotive-scroll/] Look at "03. Lerp elements". When you scroll the page, there is a little delay. That's what I want to apply to Lax. Is it possible? Thanks.

zanarota commented 2 years ago

In locomotive.js, there is no delay at the beginning, but a continuation of the movement. So in lax.js, it's inertia property.