-
-
Save ederchrono/4bea74d39e95ed59e847fd427e71e0d0 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
// JS inside methods | |
animateChars (id, charLength, direction) { | |
for(let c=0;c < charLength; c++){ | |
const refId = `char-${id}-${c}`; | |
const char = this.$refs[refId]; | |
TweenMax.killTweensOf(char); | |
TweenMax.to(char, 0.5, {scaleX: direction}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment