From 848c621ce39453639e7d04d56010fecc714c185f Mon Sep 17 00:00:00 2001 From: J Date: Sat, 16 Apr 2016 13:49:17 +0200 Subject: [PATCH] Make it smooth, force hardware acceleration Simple enough, Saw your plugin, nice one, tho if adding transform: translate3d(0,0,0) as inline, this will force the hardware acceleration and make a good improvement. Even if it is [not (yet) fully supported](http://caniuse.com/#search=translate3d) - it is well supported and worth to add :D This will also make the zoom/scroll transitions like `@include transition(all 0.5s ease-out);` much better! Yeah, I use sass. Best, /J --- jquery.zoom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.zoom.js b/jquery.zoom.js index 61af150..a2104ff 100644 --- a/jquery.zoom.js +++ b/jquery.zoom.js @@ -46,7 +46,8 @@ height: img.height * magnify, border: 'none', maxWidth: 'none', - maxHeight: 'none' + maxHeight: 'none', + transform: 'translate3d(0,0,0)' }) .appendTo(target);