When running the project with the server with react-scripts start, the animation runs perfectly. : D
However ... when creating the bundle for production, using the react-scripts build command the animation simply does not work: :'(
I'll provide the code below to show it happening
Expected Behavior
That the animation works normally
Actual Behavior
Animation does not happen.
In the video below:
1) On the Left: project running with yarn start, adding 2 seconds of delay to view a console along with animation start.
2) On the Right: project running on a static server withe the build folder after run yarn build. The console after 2 seconds runs, the animation does not.
Is this a bug report?
Did you try recovering your dependencies?
Which terms did you search for in User Guide?
Environment
npx create-react-app gsapApp
package.json
manifest.json
Steps to Reproduce
react-scripts start
, the animation runs perfectly. : DExpected Behavior
Actual Behavior
yarn start
, adding 2 seconds of delay to view a console along with animation start. 2) On the Right: project running on a static server withe the build folder after runyarn build
. The console after 2 seconds runs, the animation does not.Reproducible Demo
App.js
Any idea? :)
p.s: I'll post this behavior also on GSAP's Github, to see if this could be a GSAP bundle-related issue.
Thanks for the help, Alex.