chiodonia/image-gallery — Issue #6: render or transform
Author: chiodonia
Created: 2011-12-23 13:43:45+00:00
State: open

While zooming and scaling, should we re-render the FrontView or just call transform?

My guess is that we should call transform in oder to take advantage of hardware acceleration.

This code within the render method should be eliminated
$.each(['-moz-', '-webkit-', '-o-', '-ms-', ''], function(i,v) {
$(".FrontViewContainer img").css(v+'transform', 'rotate('+that.rotation+'deg) scale('+that.scale+','+that.scale+')');
});
Transform should be called instead.