Skip to content

Instantly share code, notes, and snippets.

@netconstructor
Forked from DamonOehlman/marker-backflip.js
Created June 26, 2012 02:53
Show Gist options
  • Save netconstructor/2992967 to your computer and use it in GitHub Desktop.
Save netconstructor/2992967 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