Created
March 16, 2011 11:53
-
-
Save DamonOehlman/872367 to your computer and use it in GitHub Desktop.
Marker Backflip Animation Recipe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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