Having some trouble with CSS animations on mobile devices. The animation works perfectly fine on desktop, but on mobile, it seems to display the final 100% keyframe first before animating from 0%. I've tried adding the initial style directly to the class, but that didn't solve the issue. Any suggestions? Thanks!
.slideLeft {
animation-duration: 1s;
animation-fill-mode: both;
animation-timing-function: ease-out;
animation-name: slideInLeft;
transform: translate3d(-100%, 0, 0);
opacity: 0;
visibility: visible;
}
@keyframes slideInLeft {
0% {
transform: translate3d(-100%, 0, 0);
opacity: 0;
visibility: visible;
}
100% {
transform: translate3d(0, 0, 0);
opacity: 1;
visibility: visible;
}
}
<img src="http://content.mycutegraphics.com/graphics/food/whole-pizza.png" class="slideLeft"/>