Jump to content
Search Community

"ReferenceError: assignment to undeclared variable color" error.

ajnglagla test
Moderator Tag

Go to solution Solved by ajnglagla,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I am having this error when I try to change the color of a text. Do you have any idea why? Do I need extra plugin library for that? I am using 1.18.2/TweenMax.min.js

 

Error:

ReferenceError: assignment to undeclared variable color
  color = {h:0, s:50, l:50};

Screenshot:

 

QAMYy5E.png

 

The code that gives me error:

color = {h:0, s:50, l:50};

See the Pen YqLBNE by jonathan (@jonathan) on CodePen

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...