Impreved animation to prevent a box being doubly animated