2010-06-01 51 views
2

我使用JQTouch構建了一個web應用程序,並且迄今爲止對它印象非常深刻!我目前有一個小問題,因爲我現在需要將我的網站的某些部分與NO ANIMATION關聯起來。原因是我在頁面底部添加了一個「tabbar」,並保持整個iPhone的感覺,並希望鏈接到沒有動畫的其他部分。從我迄今看到的情況來看,溶解效應似乎是我猜得最接近的。沒有動畫的JQTouch鏈接

所以只是爲了清理我不想禁用所有的動畫,只有在我的標籤欄中的四個。

謝謝!

回答

0

您可以添加一個不做任何事情的自定義動畫。見this page

所以,如果你不想要的動畫,你可能希望這樣的事情(即離開了@ WebKit的關鍵幀):

<script> 
    $(function(){ 
     jQT.addAnimation({ 
      name: 'noanimate', 
      selector: '.noanimate' 
     }); 
    }); 
</script> 
<style> 
    .noanimate.in { 
     -webkit-animation-name: dontmove; 
     z-index: 0; 
    } 

    .noanimate.out { 
     -webkit-animation-name: noanimateout; 
     z-index: 10; 
    } 

    .noanimate.out.reverse { 
     z-index: 0; 
     -webkit-animation-name: dontmove; 
    } 

    .noanimate.in.reverse { 
     z-index: 10; 
     -webkit-animation-name: noanimatein; 
    } 
</style> 
+1

增加,使得untappable頁面上的任何元素,雖然 – 2011-01-06 11:08:34

+0

你的意思只是代碼以上?這是爲什麼? – 2011-01-06 11:50:07