Created
January 29, 2017 10:35
-
-
Save cyrilletuzi/fa4a95b1191ef2f0ba5917b2ac1d1441 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
element.style.transition = 'margin-left 2s'; | |
element.addEventListener('transitionend', (event) => { /* Animation finished */ }); | |
element.style.marginLeft = '100px'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment