jlmakes / scrollreveal

Animate elements as they scroll into view.
https://scrollrevealjs.org/
22.3k stars 2.26k forks source link

Different Options on Subsequent Reveals? #555

Open liamc1011 opened 1 year ago

liamc1011 commented 1 year ago

Is there a way to change options after x amount of reveals for elements that have reset: true enabled?

For instance, I want the first time an element is revealed to have 500ms of delay, and all subsequent reveals of the same element to have 100ms of delay (reset is set to true of course). How might I achieve this?

Quite new to JS so apologies if the answer is fairly obvious.