Jump to content
GreenSock

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

Multiple BoxShadow

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

Hello guys!!

 

I have one quesiton for you.

Can we use multiple boxShadow in TweenMax on same class ?

 

This code work :

 

TweenMax.set(".progressBar", {boxShadow:"inset 0px 0px 6px 0px rgba(0, 0, 0, 0.85)"});
 

 

This code didn't work :

 

TweenMax.set(".progressBar", {boxShadow:"inset 0px 0px 6px 0px rgba(0, 0, 0, 0.85), 0px 0px 12px 0px rgba(124, 34, 47, 1)"});
 


Thanks! ^^

Link to comment
Share on other sites

No, only one boxShadow is allowed at this point. You can do what you're talking about using an onUpdate with a generic object, though, but it's a bit cumbersome. 

Link to comment
Share on other sites

By the way, this will probably be supported very soon (working on it now). :)

Link to comment
Share on other sites

Yeah !!! Very very good news! You are the best ever team and GreenSock JS have a awesome future!! :-P

 

Otherwise, I use this topic for a small question about your future, I guess your team was develop others specials properties/plugins like "blur filter" for GreenSock JS ?

Sorry for my bad english.

 

Thanks!

Link to comment
Share on other sites

Yes, we hope to create more plugins like that. In fact, we'll probably be releasing a brand new ScrambleTextPlugin soon for Club GreenSock members. The blur filter effect may be a bit tricky because it'll require a canvas element overlaying the original DOM element, but we very well may release something like that in the future (probably not soon though). 

 

Glad to hear you're enjoying the platform. Happy tweening!

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