Created
September 11, 2018 14:35
-
-
Save snowleo208/9d911c0db4e1d2f45e7e847aa8fd9af7 to your computer and use it in GitHub Desktop.
This file contains 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
function showAnimation (timestamp) { | |
if(!start) { start = timestamp || new Date().getTime(); } //get id of animation | |
let elapsed = timestamp - start; | |
let progress = elapsed / 600; // animation duration 600ms | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment