Detach animation.

Stop using request animation frame when you don't need it.