-
-
Save ederchrono/e01d684f2c314f7c6448fb4e6220df98 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 | |
selectItem(id) { | |
this.selectedItem = id; | |
this.menuItems.forEach((item, index) => { | |
const direction = item.selected ? LEFT : RIGHT; | |
this.animateChars(index, item.label.length, direction); | |
}) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment