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
function collapseNamespaceRefs() { | |
function onEnter(e) { | |
const el = e.target; | |
el.textContent = el.dataset.origText; | |
} | |
function onLeave(e) { | |
const el = e.target; | |
const text = el.dataset.origText; | |
el.textContent = `..${text.substring(text.lastIndexOf("/") + 1)}`; |
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
// If you're using TimelineLite, use below code to extract the GreenSockGlobals. | |
import {TimelineLite, Power1} from "imports?define=>false!exports?_gsScope.GreenSockGlobals!gsap/src/uncompressed/TimelineLite"; | |
import "imports?define=>false!gsap/src/uncompressed/plugins/CSSPlugin"; |