added an animation directive