我是新来的,非常期待帮助html和css问题.我是jquery的新手,我的问题是这个.我想动画div1然后div2然后div3接连,到目前为止我有这个...
$(document).ready(function(){
$('div1').animate({top:119},1500, function() {
$('div2').fadeIn('slow')
});
});
Run Code Online (Sandbox Code Playgroud)
我将如何以及在何处插入$('div3').fadeIn('slow')?
非常感谢
.fadeIn()接受一个回调参数,就像.animate()你所做的那样
$('#div1').animate({top:119}, 1500, function() {
$('#div2').fadeIn('slow', function() {
$('#div3').fadeIn('slow');
});
});
Run Code Online (Sandbox Code Playgroud)