Jump to content
Search Community

pguardiario

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by pguardiario

  1. 9 minutes ago, GreenSock said:

    Thanks for the reply but this causes a bunch of different errors.

    If I use the CDN version, I'll also get errors because those things won't be defined (gsap / ScrollTrigger)

    I think I might need to wait for a Svelte user to weigh in on this, but can you confirm that this is the right way to import ScrollTrigger in Reavt/Vue  ?

     

  2. I'm confused about how to import ScrollTrigger into my svelte app.

    I tried:

    <script>
      import gsap from 'gsap';
      import { ScrollTrigger } from 'gsap/ScrollTrigger';

     

    And I'm seeing:

    500

    Cannot use import statement outside a module
    C:\User\node\gsap\node_modules\gsap\ScrollTrigger.js:12
    import { Observer, _getTarget, _vertical, _horizontal, _scrollers, _proxies, _getScrollFunc, _getProxyProp, _getVelocityProp } from "./Observer.js";

    Thanks for advice

×
×
  • Create New...