I want to create an animation with an image moving left and right continuously.
$('.user-card').css('-webkit-transform', 'translate(-55px, 0)');
The code above shifts the image 55px from right to left. I'm looking for a way to make it move back to its original position on the right after completing the leftward movement.
In addition, I need this looping action to continue indefinitely without interruption.