JSFiddle - React, Tailwind, and code Playground

by Deividas Krupstas

HTML

<img id="img" width="500px" height="500px" />

CSS

#img {
    position:relative;
    left:50%;
     background-image: url("https://www.keighleysteel.co.uk/wp-content/uploads/2018/06/unequal-angle-steel_Main.png");
}

JavaScript

$(document).ready(function() {
    $('#img').animate({left:'0'},2000);
});