Sunday, 15 July 2012

Css change dynamic value with jquery -



Css change dynamic value with jquery -

i have swipe photos when swipe adds width of screen in inline css: left: , if don't swipe swipes automatically every 5seconds

now want multiply (the screen width) * 2.

$(function () { $(".contentholder.ui-draggable").css({ left: function( index, value ) { homecoming parsefloat( value ) * 2; } }); });

it works on values don't alter after few seconds. if do:

$(function () { $(".contentholder.ui-draggable").css({ width: function( index, value ) { homecoming parsefloat( value ) * 2; } }); });

it works math.

how can create works on dynamic values?

jquery css

No comments:

Post a Comment