Is there a ‘box-shadow-color’ property?

Actually… there is! Sort of. box-shadow defaults to color, just like border does. According to http://dev.w3.org/…/#the-box-shadow The color is the color of the shadow. If the color is absent, the used color is taken from the ‘color’ property. In practice, you have to change the color property and leave box-shadow without a color: box-shadow: 1px … Read more

Correct way to animate box-shadow with jQuery

Direct answer Using Edwin Martin’s jQuery plugin for shadow animation, which extends the .animate method, you can simply use the normal syntax with “boxShadow” and every facet of that – color, the x- and y-offset, the blur-radius and spread-radius – gets animated. It includes multiple shadow support. $(element).animate({ boxShadow: “0px 0px 5px 3px hsla(100, 70%, … Read more