Directive for slide a CSS3 animation