consider this CSS property:
.front{
transition: left 2s;
left : 0px;
}
and this JQuery function :
var delay = 5000;
setTimeout(function(){
$('.front').animate({left: '1300px'}, { duration: 500});
,delay}
Now the duration is 0.5 second . Delay is set to 5 seconds . Transition timing is 2 seconds .
I have done lots of attempts to figure out who wins the war of timing, but i couldn't.
could you help me and tell me what really goes on when the script runs ?
EDIT : I added the initial position property in the css class ; forgot to add it tho .