Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fadeIn(quoteSpans) {
- Array.prototype.forEach.call(quoteSpans, function(word) {
- let animate = word.animate([{
- opacity: 0,
- filter: "blur(3px)"
- },{
- opacity: 1,
- filter: "blur(0px)"
- }],
- {
- duration: 1000,
- delay: delay,
- fill: 'forwards'
- }
- );
- delay= delay+300;
- })
- }
Add Comment
Please, Sign In to add comment