-I am using react framework. (create-react-app), and ScrollMagic Library, and am trying to implement the scrollmagic
library in reactjs
framework.I am unable to import the following Scripts.
I have imported scrollmagic
as follows
import * as ScrollMagic from 'scrollmagic'
But i am unable to use this functionality ->setTween()
as they cannot be accessed.
Following is the error log.
15:41:01:381 (ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js
I've tried importing external cdn scripts into public/index.html
, but no luck.
I've also tried this
import('scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap')
import('scrollmagic/scrollmagic/uncompressed/plugins/debug.addIndicators')
But no luck. error logs after above import
Module not found: Can't resolve 'TimelineMax' in '~\node_modules\scrollmagic\scrollmagic\uncompressed\plugins'
I've been messing up with it for a long time and I'll be really thankful for the solution.
Thank you