Jump to content
Search Community

ColorPropsPlugin not working for me

mufaddal.motorwala test
Moderator Tag

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

Hi mufaddal.motorwala   :)


in your case you dont need the ColorPropsPlugin , GSAP CssPlugin can handle that :


try this : 

See the Pen gbxYbq by MAW (@MAW) on CodePen

TweenMax.to('.div', 1, {background:"rgb(204,51,0,1)",borderColor:"red",borderWidth:5});

with ColorPropsPlugin

you can parsing and tweening color's value ( color in almost any format like "#FF00CC" or "rgba(255,0,51,0.5)" or "red" or "#f0c" or 0xFF00CC or "hsl(105,50%,80%)" ).


pls check this out : 

See the Pen lgIwD by GreenSock (@GreenSock) on CodePen

  • Like 1
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...