Open daslicht opened 9 years ago
Hi, is it possible to use percentage instead of pixels ? I tried something like this , but that did not work:
$(".box").transition({ left: 20% }); //or $(".box").transition({ left: '20%' });
The latter moves the object but without animation?
hi, try this cody $( ".box" ).animate({ "left": "+=20%" }, "slow" );
you can use variables instead
var temp=your*width; //window.innerWidth
$(".box").transition({ left: temp/5 });
Hi, is it possible to use percentage instead of pixels ? I tried something like this , but that did not work:
The latter moves the object but without animation?