jQuery-Animate-Enhanced (v5)

Revision 5 of this benchmark created on


Description

Performance comparison for: http://playground.benbarnett.net/jquery-animate-enhanced/

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="https://raw.github.com/benbarnett/jQuery-Animate-Enhanced/master/scripts/src/jquery.animate-enhanced.js">
</script>
<div id="animateme">
  Animate Me!
</div>
<script>
  $('#animateme').width(200);
</script>

Setup

$('#animateme').clone().attr('id', 'animateClone').addClass('animateme').insertAfter('#animateme')

Teardown


    $('#animateClone').remove()
  

Test runner

Ready to run.

Testing in
TestOps/sec
enhanced 2d
$('#animateClone').animate({
  opacity: '0'
}, 500);
ready
enhanced 3d
$('#animateClone').animate({
  opacity: '0',
  useTranslate3d: true
}, 500);
ready
normal
$('#animateClone').animate({
  opacity: '0',
  avoidTransforms: true
}, 500);
ready
enhanced 2d leaveTransforms
$('#animateClone').animate({
  opacity: '0',
  leaveTransforms: true
}, 500);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.