jQuery-Animate-Enhanced (v8)

Revision 8 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" style='position:absolute; width:20px; left:0;'>
  Animate Me!
</div>
<script>
  var item = $('#animateme');

</script>

Setup

item.css("left",0);
    item.css("width",0);

Test runner

Ready to run.

Testing in
TestOps/sec
enhanced 2d
item.animate({
  left: 200,
  width: 300
}, 200);
ready
enhanced 3d
item.animate({
  left: 200,
  width: 300,
  useTranslate3d: true
}, 200);
ready
normal
item.animate({
  left: 200,
  width: 300,
  avoidTransforms: true
}, 200);
ready
enhanced 2d leaveTransforms
item.animate({
  left: 200,
  width: 300,
  leaveTransforms: true
}, 200);
ready

Revisions

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