Here is a snippet of code to consider:
$(function() {
$('#item').css({
webkitTransform: 'translate(100px, 100px)'
});
});
The element I am attempting to move has the following CSS properties:
transform: translate3d(0,0,0);
transition-duration: 1s;
transition-property: transform;
I would expect the element to smoothly move over 1 second. You can see a demonstration here
Interestingly, the animation doesn't always occur as expected (sometimes there is no movement at all). I have ensured that the function waits for the page to load before executing. So, my question is why does it not consistently work?