matlstria
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by matlstria
-
-
Hi,
I'm currently having a problem with using ScrollTrigger, after installing gsap through yarn.
The installation went well (yarn add gsap), and GSAP is working well. The version is 3.9.1.
However, when I add the scrollTrigger property (see the code below), it doesn't work.I don't understand why because in the past when I used version 3.6.1 via CDN, this same code worked.
Can someone help me?
/** GSAP*/import { gsap } from "gsap";import { ScrollTrigger } from "gsap/ScrollTrigger";gsap.registerPlugin(ScrollTrigger);// Exemplegsap.from('footer', {opacity: 0,duration: 2,scrollTrigger: 'footer'})
Issue with ScrollTrigger after an install via Yarn
in GSAP
Posted
Thank you @OSUblake
Problem resolved