Skip to content

Instantly share code, notes, and snippets.

@fastdivision
Last active January 4, 2016 06:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastdivision/8585066 to your computer and use it in GitHub Desktop.
Save fastdivision/8585066 to your computer and use it in GitHub Desktop.
ng-view / ui-view Fade Animation with ng-animate
[ui-view]
position absolute
.fade
fadeSpeed = 333ms
-webkit-transition all fadeSpeed ease-in-out
-moz-transition all fadeSpeed ease-in-out
-o-transition all fadeSpeed ease-in-out
transition all fadeSpeed ease-in-out
opacity 1
&.ng-enter
opacity 0
&.ng-leave.ng-leave-active
opacity 0
<div ui-view class="fade" autoscroll="false"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment