So I was wondering what you all thought about the efficiency of animating objects using jquery css or the animate property. For example..
$('button').click(function(){
$('obj to change').css( 'pos', x );
});
this works along with the css transitioning property
CSS:
transition:all 0.7s ease-in-out;
VS
$('button').click(function(){
$('obj to change').animate({ pos , 'x' });
}, 2000, function() {
// Animation complete.
});
thanks in advance for the input for the input everyone, or if you have any better suggestions.