Skip to content

Instantly share code, notes, and snippets.

@DamonOehlman
Created March 16, 2011 11:53
Show Gist options
  • Save DamonOehlman/872367 to your computer and use it in GitHub Desktop.
Save DamonOehlman/872367 to your computer and use it in GitHub Desktop.
Marker Backflip Animation Recipe
marker.animate('rotate', [0], [-Math.PI * 2], {
easing: 'sine.inout'
});
marker.animate('translate', [0, 0], [0, -40], {
easing: 'sine.in',
duration: 500,
complete: function() {
marker.animate('translate', [0, -40], [0, 0], {
duration: 500
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment