animate object to defined location
hi all,
this code moves otherobject 40 less, 100 more
but I want to specific location like to top:'40px' and left:'100px'. How can I do this?
$("div#myobject").on("click",function(){
$("div#otherobject").animate({
top: '-=40',
left:'+=100'
}, 1500, function() {
});
});