Created
July 30, 2016 21:19
-
-
Save dmjcomdem/2b787077830a96c74363c0c5e4be47da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.letter').each(function(){ | |
anime({ | |
delay: index*200, | |
targets: '.letter:nth-child('+index+')', | |
translateY: '4rem', | |
opacity: 1, | |
borderRadius: 8, | |
duration: 2000, | |
elasticity: 100 | |
}); | |
index++; | |
if($('.letter').length == index){ | |
anime({ | |
delay: index*300, | |
targets: '.message', | |
translateY: '-1.5rem', | |
opacity: 1, | |
borderRadius: 8, | |
duration: 2000, | |
elasticity: 0 | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment