List of plugin im trying to use:
- jquery.animate-enhanced.min.js
- jquery.easing.1.3.js
Basically, im trying to convert some jquery animation to 'pure CSS3 transition'.
This is the code im working on:
$(this).animate({
bottom:(docHeight-80),
},600,
'easeOutElastic',
function(){
$(this).animate({
bottom:(docHeight-140),
},800);
}
);
With that, which is working just fine (see http://jsfiddle.net/5dfCz/), i would like now to use corresponding transition in CSS3 as this kind of animation is quite CPU expensive.
So, ive tried to use animate-enhanced plugin. This works except using CSS3, bottom property of my absolute div is not keeped when animation/transition is completed. You can see a jsfiddle here: http://jsfiddle.net/2p8Gu/
Trying to fix div position after animation gives me weird effect, see there: http://jsfiddle.net/cAUt7/
Also, i've read enhanced plugin doc and play with options 'avoidTransforms', 'useTranslate3d' and 'leaveTransforms' without more success.
So, my question:
How could i do this kind of animation in CSS3?
PS: Easing effect no more work too when convert to CSS3, but i dont know actually if this kind of effect is supported by CSS3 or how to do it.