Jump to content
Search Community

Having trouble getting GSAP animations to work on Heroku

bensgar92 test
Moderator Tag

Go to solution Solved by bensgar92,

Recommended Posts

  • Solution

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?

Gsap Errors.png

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 by bensgar92
added screenshot
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...