2

我正在使用 JQTouch 构建一个 Web 应用程序,到目前为止,我对它印象深刻!我目前有一个小问题,因为我现在需要在我的网站的某些部分之间链接没有动画。这样做的原因是我在页面底部添加了一个“标签栏”,为了与整个 iPhone 的感觉保持一致,我想链接到没有动画的其他部分。从我目前看到的情况来看,溶解效果似乎是我猜的最接近的。

所以只是为了澄清我不想禁用所有动画,只有我的标签栏中的四个。

谢谢!

4

1 回答 1

0

您可能可以添加一个什么都不做的自定义动画。请参阅此页面

所以,如果你不想要动画,你可能想要这样的东西(即省略@webkit-keyframes):

<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>
于 2010-08-04T16:15:36.823 回答