Animation using Directive