Breakdance4fun Logo

Element Studio: How to load the GSAP files properly

The GSAP libraries (gsap.min.js and scrolltrigger.min.js) are already integrated with Breakdance, so if you wish to utilize one or both for your custom element, it is unnecessary to import these files again.

The recommended approach is to use the predefined reusable dependencies. This ensures that if these libraries have already been loaded by another element, they will not be duplicated.

In the Dependencies tabs, add a new dependency and paste those lines in the script URL field:

%%BREAKDANCE_REUSABLE_GSAP%%
Elementstudio Gsap
%%BREAKDANCE_REUSABLE_SCROLL_TRIGGER%%
Elementstudio Scrolltrigger