Advertisement
nestor94

animation

Apr 27th, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.76 KB | None | 0 0
  1. /** CSS **/
  2. #content-views { position:relative; }
  3. .ng-enter, .ng-leave
  4. {
  5.   width:100%;
  6.   position:absolute;
  7. }
  8. .ng-enter
  9. {
  10.   -webkit-animation:zoomInDown 1.2s both ease-in;
  11.   -moz-animation:zoomInDown 1.2s both ease-in;
  12.   animation:zoomInDown 1.2s both ease-in;
  13. }
  14. .ng-leave
  15. {
  16.   -webkit-animation:zoomOutDown 0.5s both ease-in;
  17.   -moz-animation:zoomOutDown 0.5s both ease-in;
  18.   animation:zoomOutDown 0.5s both ease-in;
  19. }
  20.  
  21.  
  22. //index.html
  23. //Dependencies
  24. <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-animate.js"></script>
  25. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css">
  26. //Router
  27. <div id="content-views">
  28.     <div ng-view></div>
  29. </div>
  30. //Library
  31. https://daneden.github.io/animate.css/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement