img {
position: absolute;
animation: slide 2s;
}
@keyframes slide {
0% {left: 0%;}
50% {left:50%;}
100% {left: 50%;}
/*0% { left: -150%; }
35% { left: 50%; }
65% { left: 50%; }
100% { left: 100%; }*/
}
I have my css and i'm trying to get my <img src="./images/test_image.png" />
to slide into the screen from the left, but it jumps around after it finishes. I've had a look at a few online resources, but I must not be fully understanding the way keyframes work.
Any help or pointers would be great! Thanks