Jump to content
Search Community

Shadow in adobe animate with gsap?

skill 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

I want to create a shadow on a button. But is that possible in adobe animate? 

 

I've tried something like this:

TweenMax.to(this, 1.25, { boxShadow:"35px 45px 56px #FF5050" }); 

 

But that's not working.

 

Or can I do it afterwards with css? Or is that impossible because it's all in one canvas?

 

Please help me out :)

Link to comment
Share on other sites

Every time I use a filter for drop-shadow, the drop shadow 'strenght' is 100%, even though I change it to like 5%. It's totally useless...

I really don't get it.

In HTML5 Canvas documents, there is less control over the filters than there was with ActionScript.

 

I also see that changing the strength doesn't work, however one workaround is that you can change the alpha when setting the color of your shadow.  You can also adjust the blurriness.

 

Alternately, for what you want to do with a simple button, you could just make a dark rectangle on a layer behind your button, and use a blur filter on that to get a similar effect.

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