2011-01-06 19 views

回答

1

pop不是一個標準的WebKit的動畫,所以他們不得不在樣式表的關鍵幀定義它。

看起來像大象縮放和像這樣衰落:

@-webkit-keyframes pop { 
    from { 
     -webkit-transform: scale(.1); 
     opacity: 0; 
    } 
    85% { 
     -webkit-transform: scale(1.05); 
     opacity: 1; 
    } 
    to { 
     -webkit-transform: scale(1); 
    } 
} 

沒有時間做的jQuery的,現在,但如果你需要它幫忙寫回。

0

嘗試

$(this).toggle("scale", { percent: 0 }, 1000); 

or 

$(this).hide("scale", {percent: 700, origin: 'center', fade: 'hide' }, 2000); 

or 

$(this).hide("scale", {}, 1000); 

提醒您,它不會與背景圖像元素的工作乾淨。直接將它應用於圖像或CSS樣式的div,並將開箱即用!