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. 致命错误: Class ’appfacadeTest’ not found2. css - width设置为100%之后列表无法居中3. javascript - vue-cli怎么根据后端接口服务器不同 build不同接口代码?4. python - 关于爬虫爬取图片的问题?5. PHP中文网定制款鼠标垫6. python - 如何使用jsom.dumps获得完整的json数据?7. python2.7 - 在Eclipse开发Python,怎么去掉控制台输出的其他消息??8. javascript - vue生成一维码?求助!!!!!急9. javascript - [多图预警]reactjs点击某表格编辑内容,跳转传值this.context.router.params.id时id报错未定义10. mysql 一个sql 返回多个总数
