我已经做了放大镜上的动画来移动悬停,但我没有冲突,我不知道为什么它不工作。放大镜与jquery上的动画
请参阅下面我的代码: -
$(document).ready(function() {
$('#ie8 .image-info').css('opacity', '0');
if ($('#ie8 .image-info').length){
$('.entry-image').hover(function(){
$(this).find('.image-info').css('opacity', '1');
}, function(){
$(this).find('.image-info').css('opacity', '0');
});
};
});
$('.thumbnailwrap .readmore').hover(
function(){
$(this).find('span').stop(true,true).animate({ 'top' : '-24px', 'opacity' : '0' }, 150, function(){
$(this).css({ 'top' : '86px' }).animate({ 'top' : '9px', 'opacity' : '1' }, 150);
});
}, function(){
$(this).find('span').css({ 'top' : '9px', 'opacity' : '1' }).stop(true,true).animate({ 'top' : '46px', 'opacity' : '0' }, 150, function(){
$(this).css({ 'top' : '-24px', 'opacity' : '1' }).animate({ 'top' : '9px' }, 150);
});
}
);
指针是赞赏的家伙,我不想要的答案,我会爱来教育自己如何我已经错以上。
什么,我想重新创建的例子是这样的: -
http://elegantthemes.com/preview/Origin/
尝试把'$(文件).ready'函数内部悬停功能? – Bill
定义“不工作”。 – Blazemonger
在悬停它应该飞起来,并按照CSS函数回来,比利,这将是明智的? –