css - AngularJS - Sliding Effect On ng-click -


i have created simple ng-click function hides , shows div.

however, rather , appearing , disappearing, angular have ability give sliding effect?

here's plunkr: http://plnkr.co/edit/jbhidl3ooqvi4rbckjif?p=preview

html:

<div class="grid-wrap">   <div class="grid-col one-third">     <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>     <a href="#" class="link" ng-click="showme=!showme">show slidy section</a>   </div>     <div class="grid-col two-thirds" ng-show="showme">     hidden section want slide out      <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua</p>     <p>ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis irure dolor in repr</p>    </div> </div> 

you should have read ng-animate (it have injected app - lot of ppl forget) can take here http://www.nganimate.org/angularjs/ng-switch/slider-css3-transition-animation

a designed examples of ng-animate can do

google cdn angularjs-animate.min.js


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -