carlosavilasi
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by carlosavilasi
-
-
scrollmagic-plugin-gsap
Original animation.gsap.js plugin for ScrollMagic is not compatible with ES6 modules, so it's causing a number of problems to add it in ES6 environment. Use this module to simple wrap ScrollMagic with animation.gsap.js in ES6.
npm install --save scrollmagic-plugin-gsap
import * as ScrollMagic from "scrollmagic"; // Or use scrollmagic-with-ssr to avoid server rendering problemsimport gsap from "gsap"; // Also works with TweenLite and TimelineLite: import { TweenMax, TimelineMax } from "gsap";import { ScrollMagicPluginGsap } from "scrollmagic-plugin-gsap";ScrollMagicPluginGsap(ScrollMagic, gsap);// There you can use setTween() in ScrollMagic Scene with no problems- 1
How can I use GSAP 3 with scroll magic?
in GSAP
Posted
scrollmagic-plugin-gsap
Original animation.gsap.js plugin for ScrollMagic is not compatible with ES6 modules, so it's causing a number of problems to add it in ES6 environment. Use this module to simple wrap ScrollMagic with animation.gsap.js in ES6.
npm install --save scrollmagic-plugin-gsap