Javascript jQuery定时通知onclick
我希望有淡入淡出动画发生,加上有高度的。隐藏也从0px增长到30px在.delay2000 而不是.hideme显示为display:block;单击后,我希望.delay2000的高度从0px变为30px,同时保持淡入淡出动画 $document.readyfunction{ $1.5美元的绘图后隐藏; $post-button1.单击post通知; }; 函数后通知{ $post-draft1.fadeInslow.delay2000.fadeOutslow; } 希德姆先生{ 背景:蓝色; 高度:30px; } 保存点击Javascript jQuery定时通知onclick,javascript,jquery,Javascript,Jquery,我希望有淡入淡出动画发生,加上有高度的。隐藏也从0px增长到30px在.delay2000 而不是.hideme显示为display:block;单击后,我希望.delay2000的高度从0px变为30px,同时保持淡入淡出动画 $document.readyfunction{ $1.5美元的绘图后隐藏; $post-button1.单击post通知; }; 函数后通知{ $post-draft1.fadeInslow.delay2000.fadeOutslow; } 希德姆先生{ 背景:蓝色
这是一个测试div,可以使用.animate jQuery方法设置高度动画
$('.hideme').animate({height:'30px'});
但首先,必须将高度设置为较小的值:
.hideme {
background: blue;
height: 0px;
}
代替.delay,您可以使用fadeIn的回调在fadeIn完成时设置.hideme高度的动画:
$("#post-draft1").fadeIn("slow", function(){
$('.hideme').animate({height:'30px'});
});
请参阅:
$document.readyfunction{
$1.5美元的绘图后隐藏;
$post-button1.单击post通知;
};
函数后通知{
//$post-draft1.fadeInslow.delay2000.fadeOutslow;
$post-draft1.show.animate{height:'30px',不透明度:1},1000.delay2000.animate{height:'0px',不透明度:0},1000;
}
希德姆先生{
背景:蓝色;
高度:0px;
不透明度:0;
}
保存点击
这是一个测试div