Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created January 6, 2013 20:57
Show Gist options
  • Select an option

  • Save koenbok/4470148 to your computer and use it in GitHub Desktop.

Select an option

Save koenbok/4470148 to your computer and use it in GitHub Desktop.
Bounce every view!
// Bounce every view that you click on
View.Views.map(function(view) {
view.on("click", function(e) {
e.stopPropagation()
view.animateStop()
view.scale = 0.5
view.animate({
properties:{scale:1.0},
curve: "spring(100,3,500)"
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment