graingert / WOW

Reveal CSS animation as you scroll down a page
https://wowjs.uk
Other
1.58k stars 1.56k forks source link

delay between iteration #18

Closed nurbol-sarsenbayev closed 5 years ago

nurbol-sarsenbayev commented 5 years ago

Hi! How can I set delay time between each iteration?

graingert commented 5 years ago

You should be able to set various animation preferences with:

https://github.com/graingert/WOW/blob/34712a3deadd7ba24633aa8cf5a97675a1c4b56f/src/WOW.js#L301-L303

Have you tried https://michalsnik.github.io/aos/ instead?

graingert commented 5 years ago

@nurbol-sarsenbayev looks like it can't be done, you have to configure your own animation with keyframes: https://css-tricks.com/css-keyframe-animation-delay-iterations/

nurbol-sarsenbayev commented 5 years ago

I am using wow.js and animate.css in my project. Can I use own animation with wow.js?

graingert commented 5 years ago

I am using wow.js and animate.css in my project.

I know - have you tried AOS instead?

nurbol-sarsenbayev commented 5 years ago

Thank you! I created own animation using keyframes like here https://css-tricks.com/css-keyframe-animation-delay-iterations.