I am practicing jQuery. I have used below in code in my script not working correctly. This code pulls the 9 images from the DOM and translates the images basing on the values defined in the array arr_trans and should be animated parallely, so I have used queue:false .
for ( var i=0; i < $('.mc-item').length;i++) {
$('.mc-item').eq(i).animate({"-webkit-transform":"translate("+ arr_trans[i]+"px"+")"},{duration:100, queue:false});
}
arr_trans[]
--> contains 9 different values to translate the each image at different position.
$('.mc-item')
--> gets 9 images from the DOM
The above code is working if I use "CSS" instead of "animate". Note, I am running in chrome browser. Please advise.