Skip to content

Instantly share code, notes, and snippets.

@fastdivision fastdivision/fade.styl
Last active Jan 4, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.