pguardiario
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by pguardiario
-
-
Thanks for that, the codesandbox code works but it breaks as soon as I add ScrollTrigger.
It works in codesandbox and breaks locally.
I think I'm going to give up on Svelte.
-
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 ?
-
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
Problems importing ScrollTrigger
in GSAP
Posted