Created
November 27, 2019 15:06
-
-
Save dzolnai/550fc402d641bd7d5d68a9d9cf0809e0 to your computer and use it in GitHub Desktop.
Running tau with an element
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
var t = tau.animation.target; | |
var digitElement = document.querySelector("#digit-element"); | |
t(digitElement).tween({ | |
translateY : -(finalOffset) * digitSizePx + constantOffset | |
}, { | |
duration : 1000, | |
ease: 'linear' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment