css - 在 Mozilla 中动画前变换

标签 css animation transform scale mozilla

我想要变换(缩放)横幅中的一些图像,但是我想在执行动画之前执行此操作,因为我不希望缩放动画。这是代码片段:

<span class="animate"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Turkish_Van_Cat.jpg/1024px-Turkish_Van_Cat.jpg" /></span>

#banner img{
zoom:0.66;
-moz-transform: scale(0.66);
-moz-transform-origin: 0 0;
-o-transform: scale(0.66);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.66);
-webkit-transform-origin: 0 0;
transform: scale(0.66); /* Standard Property */
transform-origin: 0 0;  /* Standard Property */
position: absolute;
top: 40px;
left: 50px;
}

#banner span{
-webkit-animation-duration: .6s;
-webkit-animation-timing-function: ease;
-webkit-animation-fill-mode: both;
-moz-animation-duration: .6s;
-moz-animation-timing-function: ease;
-moz-animation-fill-mode: both;
-ms-animation-duration: .6s;
-ms-animation-timing-function: ease;
-ms-animation-fill-mode: both;
animation-duration: .6s;
animation-timing-function: ease;
animation-fill-mode: both;

-webkit-animation-delay: .2s;
-moz-animation-delay: .2s;
-ms-animation-delay: .2s;
animation-delay: .2s;
}

最佳答案

您可以使用 jquery 设置动画 A 结束时将开始动画 B

我相信可以找到您问题的解决方案 here

关于css - 在 Mozilla 中动画前变换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24535625/

相关文章:

jquery - 在其他元素之上保持转换元素

html - 不能保证 <img> 正确

jquery - 鼠标悬停和 addClass jQuery 示例

jquery - 图像叠加层 "margin-top"无法正确显示不同的图像高度

javascript - 我不知道如何在 JavaScript 中创建一个额外的轨道圈

jquery - 如何在 jQuery .animate 完成之前停止跟踪链接?

java - 如何找到限制 Java 游戏速度的问题?

css - Foundation 5 CSS Z-index 顶部栏下拉菜单问题

css - 旋转元素的相对宽度

javascript - SVG 的自由变换插件 - 创建占位符元素