Skip to content

Instantly share code, notes, and snippets.

@ederchrono
Created April 20, 2019 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ederchrono/4bea74d39e95ed59e847fd427e71e0d0 to your computer and use it in GitHub Desktop.
Save ederchrono/4bea74d39e95ed59e847fd427e71e0d0 to your computer and use it in GitHub Desktop.
// 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