Add animation to panel toggle