Slider animation directive for AngularJS