Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

tween border color

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'm trying to tween border-bottom-color in css, I assume it's camel casing like this borderBottomColor


TweenLite.to(this.sprite, 0, {css:{borderBottomColor:'#91f4c2'}});


but this doesn't seem to work, or maybe I'm using the wrong name? Thanks.

Link to comment
Share on other sites

I just did a quick test and didn't have any problems in Safari, Chrome or FF.


Can you see the borderBottomColor tween work here:



If not please let us know which browser/OS you are using.



Link to comment
Share on other sites

Yep, I just tried too and it worked fine - you did notice that you have "0" for the duration, right? So it would immediately jump to the end value rather than gradually tweening there. Also, are you using the latest version of the GSAP files?

Link to comment
Share on other sites

ahhh it's my own fault, I was tweening something that's out of scope. sorry... and thanks again.

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.