Jump to content
Search Community

Animating boxShadow cross browser

Paver test
Moderator Tag

Recommended Posts

GSAP is animating the properties [offset-x | offset-y | blur-radius | spread-radius] in webkit browsers when using certain rgba values for boxShadow. Putting the color value first like 'rgba(255,0,0,1) 0px 0px 70px 35px' fixes the issue in webkit but breaks in Edge which actually works correctly for the CodePen example.

 

The only cross browser solution I have at the moment is to animate the color property in a separate object and then set it in onUpdate.

See the Pen YzPWrJB by pavlo-livearea (@pavlo-livearea) on CodePen

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