Solution bensgar92 Posted January 15, 2021 Solution Share Posted January 15, 2021 (edited) I'm working on a portfolio that I have successfully deployed and just recently I was experimenting with some simple text animations. They work great locally but they do not work on Heroku. I have read through a few different forums and tried adding the CDNs to my index.html but still have not had any luck. Any reason as to why Heroku is not accepting my GSAP animations? Here are my imports: import {gsap, Power3} from 'gsap'; import { CSSPlugin } from 'gsap/CSSPlugin' also added this that I saw in another forum post: gsap.registerPlugin(CSSPlugin) So adding the above lines of code was the solution for this error of mine! Hooray! Edited January 15, 2021 by bensgar92 added screenshot Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 15, 2021 Share Posted January 15, 2021 Hey bensgar92 and welcome to the GreenSock forums. Unfortunately it's impossible for us to help blindly. What errors are you getting? Can you share the webpage with us? How are you trying to load GSAP (CDN via script tag? importing it in a module?)? Link to comment Share on other sites More sharing options...
bensgar92 Posted January 15, 2021 Author Share Posted January 15, 2021 Hey Zach, here is my portfolio that I am trying to slowly make better every day. https://ben-gardner-react-portfolio.herokuapp.com/. The text on the main page is what I am trying to animate. I added an image of the errors I am receiving in my first post. You can also view them in the console when viewing that site. Link to comment Share on other sites More sharing options...
bensgar92 Posted January 15, 2021 Author Share Posted January 15, 2021 OH SNAP! It's working! Well, I must've done something right recently. Been reading different forums for the last few hours. Thanks for the reply though! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now