I have a div to which some CSS shadow will be applied. I need to get the following shadow elements with jQuery:
h-shadow
,v-shadow
,blur
andspread
in pixels- The
color
of the shadow, in some string, doesn't matter how inset
, if it is applied in thebox-shadow
property.
How to do it? Are there some specific CSS properties, like border-top-right-radius
to get the top right border radius instead of working with border-radius
?
So, example code:
<div id="the_div" style="box-shadow:10px 10px 5px 2px #f00 inset;">...</div>
Now some JavaScript...
$(function(){
$('#the_div').someFunction(); // returns the h-shadow, for example
});