Can someone help me with the correct way to install and use Gsap and Scroll Magic?
I’ve added them both fine with yarn add its just linking it up.
import TweenMax from 'gsap/src/minified/TweenMax.min';
import ScrollMagic from 'scrollmagic/scrollmagic/uncompressed/ScrollMagic';
import 'scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.min';
I just get left with not defined errors or can’t resolve espically with gsap am I installing these wrong?
I’m just getting used to webpack from sage 8 is there anywhere recommended to learn this stuff? its frustrating how some of the scripts just work and others seem a pain?
Scrollmagic requires some customisation to your webpack.config.js file in order to work correctly.
Specifically, you should add the following to your resolve section: