JQuery animate left and scale

Hi, I need to scale and animate the div at the same time.

Something like that.

$('#div').effect('scale'{percent:200}, 'animate',{left:200}); 

Thanks.

This is the solution I found.

  $('#div').effect('scale'{percent:200},1000); $('#div').animate({left:100,top:100},1000); $('#div').fadeTo(1100,0)); 
+6
source share
1 answer
 $('#div').animate({ left: 200, height: ($(this).height()*2), width: ($(this).width()*2) }, 1000); 
+6
source

Source: https://habr.com/ru/post/913083/


All Articles