效果題 一個(gè)圖片 先向右移動(dòng)300px;再向下300px 等待20秒后圖片突然放大怎么弄?
慕粉4174691
2016-10-17 11:03:51
TA貢獻(xiàn)178條經(jīng)驗(yàn) 獲得超70個(gè)贊
<img?src="4.jpg"?style="width:?100px;height:?100px;border:?1px?solid;position:?absolute;">
<script?type="text/javascript"> $(function(){ $("img").animate({ ???left:'+=300px', },'slow',function(){ $("img").animate({top:'+=300px'},'slow',function(){ $("img").delay(3000).animate({width:"200px",height:"200px"},'slow'); }); }) }) </script>
圖片,放大倍數(shù),移動(dòng)速度,放大速度自己替換就好了。
舉報(bào)