Fork of animate enhanced. Work in progress, not stable version.
Use Transform Css for convert parameter.
- property supported :
$('.anim').animate({
left: 500,
top: 100,
rotate: 90, // add rotate
opacity: 0.5,
width: 50,
scale:0.5 // add scale x/y
}, 5000, 'linear');- time management :
$('.anim').pause(); // pause
$('.anim').play(); // play
$('.anim').stop(); // stop and set top/left- rework chainage :
$('.anim').fadeIn().fadeOut();- extend function :
$('.anim').rotate(90); // rotate
$('.anim').getAnimPos(); // return pos left/top - fix callback in multi-object :
$('.anim').animate({ left: 100 }, function(){
$(this).fadeOut();
});- fix double same animate (in original version, transition failed) :
$('.anim').fadeOut();
$('.anim').fadeOut(); // fix them - return false- Safari
- Android 4+
- Firefox
- Chrome
Slight delay in stop/play, for supported Android < 4.4.
- right / bottom
- -= in translate
- traditionnal animate
- pause easing