Skip to content

Instantly share code, notes, and snippets.

@dmjcomdem
Created July 30, 2016 21:19
Show Gist options
  • Save dmjcomdem/2b787077830a96c74363c0c5e4be47da to your computer and use it in GitHub Desktop.
Save dmjcomdem/2b787077830a96c74363c0c5e4be47da to your computer and use it in GitHub Desktop.
$('.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