jQuery getting text-shadow variabile
Posted
by Mircea
on Stack Overflow
See other posts from Stack Overflow
or by Mircea
Published on 2010-04-21T13:25:34Z
Indexed on
2010/04/21
13:43 UTC
Read the original article
Hit count: 296
jQuery
|text-shadow
Hi,
I want to get 4 variables when I click on a span that have the CSS3 text-shadow propriety. So for a css propriety of text-shadow: -4px 11px 8px rgb(30, 43, 2);
, my code should be:
$("#element").click(function () {
var text-shadow = $("#element").css("text-shadow")
});
Would it be possible to get it split like:
var y = "-4px";
var x = "11px";
var blur = "8px";
color = "rgb(30, 43, 2)";
I need to somehow split the first variable to get this data.
Thanx
© Stack Overflow or respective owner