这里是一个工作的jsfiddle:的Javascript/jQuery的动画完成后,显示结束的div
我不想在div显示后,才返回动画完成。
的jQuery:
$(document).ready(function() {
$("#menu").hover(function() {
$('#arrow').hide();
$("body").children(':not(#menu)').css("-webkit-filter", "blur(2px)");
$(this, '#arrow').stop().animate({
width: "200px"
}, 250,
function() {
if ($('#menu').width() == '200') {
$('.text').fadeIn(200);
}
});
}, function() {
$(this).stop().animate({
width: "0px"
}, 250)
$("body").children(':not(#menu)').css("-webkit-filter", "none");
$('.text').fadeOut('fast');
$('#arrow').show();
});
});
不知道你的意思,但是这是它 - > [** ** FIDDLE(HTTP:// jsfiddle.net/adeneo/YnT2X/1/)?? – adeneo 2013-02-28 22:47:22