You can do this with CSS and Javascript.
In CSS you define the transition you want to make and a class that defines the new value of for example margin-left
:
#carros img {
margin-left: -600px;
transition: margin-left 1s;
}
.chegada {
margin-left: 0px !important;
}
and in Javascript only need to add this CSS class after some time (3s in the example below):
setTimeout(function () {
document.querySelector('#carros img').classList.add('chegada');
}, 3000);
Example: http://jsfiddle.net/uy0ajo3k/1 (now with suffixes for older browsers)
To do the effect of the car with the yellow border I suggest you have two different images and overlap the second that has this yellow color after.
What format do you have that(s) images?
– Sergio
@Sergio are in a PSD! can save as PNG
– fronthendy
@Hendyalmeida So, first you have to separate the image of the cars from the background image, if you have the PSD you will probably be able to do this, if you have a link with the images I can do and reply here
– William Pereira
I added the cart image! (:
– fronthendy