Optimizations to animate boxes.