css3 - how can i change value of transform with jQuery? -
css3 - how can i change value of transform with jQuery? -
i have block
<div class="some"></some>
and want alter jquery css callback function
just like
$(".some").css('height', function(i, value){ homecoming parsefloat(value) * 1.2; });
but if call
$(".some").css("transorm") returns "matrix(1, 0, 0, 1, 0, -0.0212)"
and need transformy, lastly value, how can take it?
var res = $(".some").css("transorm"); // returns "matrix(1, 0, 0, 1, 0, -0.0212) var values = res.split('(')[1]; values = values.split(')')[0]; values = values.split(','); var your_value = values[5]; //has '-0.0212'
jquery css3
Comments
Post a Comment