Nope, gsap.defaults() is global, so you should probably only call that one time.   I would recommend this pattern to anyone who uses modules. Do all your plugin registration and GSAP configuration in a single file like so.   import { gsap } from "gsap"; import { Draggable } from "gsap/Draggable"; import { TextPlugin } from "gsap/TextPlugin"; gsap.registerPlugin(Draggable, TextPlugin); gsap.defaults({ duration: 2 }); export * from "gsap"; export * from "gsap/Draggable";
    • Thanks
    • Like
    5