Well, itβs not that iOS does not support animation on pseudo-elements, but was more than a bug in WebKit. They decided it in January , and due to quick updates to Chrome, it now works in Chrome, but not so on Safari, neither in the mobile nor the desktop version.
Make only the animation for the whole element ( #btn ) instead of the pseudo-element.
.glow:after { background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.5); position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; content: ""; border-radius: 3px; } #btn { -webkit-animation-name: glow; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: ease-in-out; background: red; text-align: center; font-size: 100px; color: white; line-height: 100px; opacity: 0; }
http://jsfiddle.net/tTxMV/2/
source share