CSS3 Animation only working in Chrome
问题描述
I’m trying to animate some img nested inside an a. I created a simple CSS3 animation with prefixes, in Chrome it’s working, but not in other browsers, any idea what’s wrong?
.pulso:hover { -webkit-animation: pulso 2s ease infinite; -moz-animation: pulso 2s ease infinite; -ms-animation: pulso 2s ease infinite; animation: pulso 2s ease infinite;} @keyframes 'pulso' { 0% {-webkit-transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);transform: scale(1); } 50% {-webkit-transform: scale(1.05);-moz-transform: scale(1.05);-o-transform: scale(1.05);-ms-transform: scale(1.05);transform: scale(1.05); } 100% {-webkit-transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);transform: scale(1); } }@-moz-keyframes 'pulso' { 0% { -moz-transform: scale(1); transform: scale(1); } 50% { -moz-transform: scale(1.05); transform: scale(1.05); } 100% { -moz-transform: scale(1); transform: scale(1); }}@-webkit-keyframes pulso { 0% { -webkit-transform: scale(1); transform: scale(1); } 50% { -webkit-transform: scale(1.05); transform: scale(1.05); } 100% { -webkit-transform: scale(1); transform: scale(1); }}@-ms-keyframes pulso { 0% { -ms-transform: scale(1); transform: scale(1); } 50% { -ms-transform: scale(1.05); transform: scale(1.05); } 100% { -ms-transform: scale(1); transform: scale(1); }}
问题解答
回答1:Remove all quotation.把双引号都拿掉。
相关文章:
1. 点字符“” 在MVC Web API 2中进行请求,例如api / people / STAFF.452872. golang - 用IDE看docker源码时的小问题3. docker - 各位电脑上有多少个容器啊?容器一多,自己都搞混了,咋办呢?4. 求大神指点js修改margintop导致无限下滑的问题5. javascript - thymeleaf模板 只有length如何循环生成标签?6. node.js - 我是一个做前端的,求教如何学习vue,node等js引擎?7. javascript - node如何关闭主进程后 打开另一进程?8. web服务器 - ubuntu下布置apache加wsgi加python9. python2.7为什么点击了"开始"按钮后,tkinter上的按钮,图中红色部分,再也点不动了?10. python3的各种库的官方文档中文版在哪儿可以找到

网公网安备