Skip to content

Instantly share code, notes, and snippets.

@snowleo208
Created September 11, 2018 14:35
Show Gist options
  • Save snowleo208/9d911c0db4e1d2f45e7e847aa8fd9af7 to your computer and use it in GitHub Desktop.
Save snowleo208/9d911c0db4e1d2f45e7e847aa8fd9af7 to your computer and use it in GitHub Desktop.
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