Add animation handler