Reputation: 4189
I want to use Codepen example in my code, but when I copy and pasted the css none of the animation works, I inspected the css using Chrome and all the animation are crossed out, any idea?
.loading > div > .c4 {
top: auto;
bottom: 10px;
transform-origin: 20px -4px;
animation: spin-d 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
}
Upvotes: 0
Views: 1126
Reputation: 781096
Chrome and Safari, you have to use -webkit-animation
. For Firefox you have to use -moz-animation
. For Opera you need -o-animation
. See the Compatibility Table in MDN.
Codepen apparently detects the browser version and rewrites the CSS accordingly.
Upvotes: 2