You missed px
in css translate(0, npx)
is correct, jQUery css({})
function won’t add default px
when css property has multiple param
this would be correct, if single param
$("<selector>").css({'height': wHeight})
but translate()
properly takes multiple params so you will need to add unit
with value
$('.test').css({"-moz-transform":"translate(0," +wHeight+ "px)" });
solved jQuery translate value adding by jQuery