admin管理员组文章数量:1430377
Does anyone know how to change the type of animation the page/sections uses? I read the docs but couldn't understand a single thing. I like the framework and I really want to give it a try but there is absolutely NO tutorials or documentation for that matter.
Does anyone know how to change the type of animation the page/sections uses? I read the docs but couldn't understand a single thing. I like the framework and I really want to give it a try but there is absolutely NO tutorials or documentation for that matter.
Share Improve this question asked Jul 12, 2011 at 5:01 ZeakeZeake 111 silver badge3 bronze badges1 Answer
Reset to default 6You can use those Zepto animations, which are native webkit transitions:
$('.pages').anim({ translateX: window.innerWidth + 'px'}, 0.5, 'ease-out');
or
$('.pages').anim({ translate3d: window.innerWidth + 'px, 0, 0'}, 0.5, 'ease-out');
List of animation available:
var supportedTransforms = [
'scale', 'scaleX', 'scaleY',
'translate', 'translateX', 'translateY', 'translate3d',
'skew', 'skewX', 'skewY',
'rotate', 'rotateX', 'rotateY', 'rotateZ', 'rotate3d',
'matrix'
];
本文标签: javascriptzeptojs page animationsStack Overflow
版权声明:本文标题:javascript - zepto.js page animations - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745522467a2661686.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论