Share Posted April 18, 2016 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: 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 More sharing options...
Author Share Posted April 18, 2016 I have solved my problem with putting "var" front of it. Thank you var color = {h:0, s:50, l:50}; 1 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