Jump to content
Search Community

How to import ScrollTrigger using skypack.dev ?

CraigO test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I followed the solution by OSUblake on how to use imports as a CDN within <script type="module"> to import GSAP.

I also added the required registration of gsap.registerPlugin(ScrollTrigger); but console error states that ScrollTrigger is undefined. I did not find any reference on skypack.dev on how to separately import ScrollTrigger plugin.

Does the cdn import from skypack.dev for GSAP also include ScrollTrigger or does it need to be imported separately ?

Capture-100.PNG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...