Skip to content

Instantly share code, notes, and snippets.

@techhahn
Created June 30, 2014 21:09
Show Gist options
  • Save techhahn/73cb26187929e1a3f51b to your computer and use it in GitHub Desktop.
Save techhahn/73cb26187929e1a3f51b to your computer and use it in GitHub Desktop.
myApp.animation('.repeated-items', function() {
return {
enter: function(element, done) {
element.velocity("transition.slideUpIn", {stagger: 100, complete: done});
},
leave: function(element, done) {
element.velocity("transition.shrinkOut", {stagger: 100, complete: done});
},
move: function(element, done) {
element.velocity("transition.slideUpIn", {stagger: 100, complete: done});
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment