Last active
December 9, 2019 15:28
-
-
Save audetcameron/8210f1270e31fc6ab4583bac906070ea to your computer and use it in GitHub Desktop.
Import Scroll Magic Plugins into JS build process via npm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://www.npmjs.com/package/scrollmagic-plugin-gsap | |
import * as ScrollMagic from "scrollmagic"; | |
import { TweenMax, TweenLite, TimelineMax, CSSPlugin, ScrollToPlugin, Draggable } from "gsap/all"; | |
import DrawSVGPlugin from "../../vendor/gsap/DrawSVGPlugin"; | |
import { ScrollMagicPluginGsap } from "scrollmagic-plugin-gsap"; | |
ScrollMagicPluginGsap(ScrollMagic, TweenMax, TimelineMax); | |
//do stuff here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment