【发布时间】:2014-07-16 21:55:43
【问题描述】:
我正在使用来自http://daneden.github.io/animate.css/ 的 animate.css,我想将 2 个很酷的转换集成或自定义到我的 jquery 移动应用程序中,其中一个是 zoomIn 和 zoomOut,另一个是 lightSpeedIn 和 lightSpeedout... . 如果你们中的任何人已经将它们实现为您的移动项目的自定义过渡...请告诉我如何...
例如,这个自定义是针对bounceIn Transtions的:
.bounceIn.in {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
-webkit-animation-name: bounceIn;
-moz-animation-name: bounceIn;
-ms-animation-name: bounceIn;
-o-animation-name: bounceIn;
animation-name: bounceIn;
-webkit-animation-timing-function: ease-out;
-webkit-animation-duration: 750ms;
-moz-animation-timing-function: ease-out;
-moz-animation-duration: 750ms;
}
.bounceIn.out {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
-webkit-animation-name: bounceOut;
-moz-animation-name: bounceOut;
-ms-animation-name: bounceOut;
-o-animation-name: bounceOut;
animation-name: bounceOut;
-webkit-animation-timing-function: ease-in;
-webkit-animation-duration: 555ms;
-moz-animation-timing-function: ease-in;
-moz-animation-duration: 555;
}
提前谢谢你!
【问题讨论】:
标签: jquery css jquery-mobile css-transitions