如何在jquery中使用animate连续移动div背景

时间:2012-12-12 23:30:04

标签: jquery

$("#marlin").animate({opacity:'0.4'});

   $("#marlin").animate({top:'550px',opacity:'0.4'},"slow");

    $("#marlin").animate({right:'430px'},"slow");

    $("#marlin").animate({top:'450px',opacity:'0.4'},"slow");

    $("#marlin").animate({top:'550px',opacity:'0.4'},"slow");

    $("#marlin").animate({right:'200px'},"slow");

    $("#marlin").animate({top:'350px',right:'210px',opacity:'0.4'},"slow");

    $("#marlin").animate({width:'50px',opacity:'0.4'},"slow");

   $("#marlin").animate({width:'50px',opacity:'0.6'},"slow");

1 个答案:

答案 0 :(得分:1)

> you can go to this tutorial , 
> http://www.w3schools.com/jquery/jquery_animate.asp
> 
> hope it will help you.