我已經做了放大鏡上的動畫來移動懸停,但我沒有衝突,我不知道爲什麼它不工作。放大鏡與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函數回來,比利,這將是明智的? –