Workaround for animation artifacts.

http://stackoverflow.com/questions/11924986/animating-a-div-with-javascript-renders-artifacts-on-chrome/12023155#12023155