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
// Define your attribute names here. | |
const ATTR_NAME = "wb-data"; | |
const ATTR_ITEM_VALUE = "tab-item"; | |
const ATTR_CONTENT_VALUE = "tab-content"; | |
gsap.registerPlugin(ScrollTrigger); | |
function init() { | |
const tabItems = document.querySelectorAll( | |
`[${ATTR_NAME}="${ATTR_ITEM_VALUE}"]` |
NewerOlder