Skip to content

Instantly share code, notes, and snippets.

@lumivient
Last active May 3, 2016 11:40
Show Gist options
  • Select an option

  • Save lumivient/cbb391f1591f7fe6afe7c28eb26fbdb2 to your computer and use it in GitHub Desktop.

Select an option

Save lumivient/cbb391f1591f7fe6afe7c28eb26fbdb2 to your computer and use it in GitHub Desktop.
Simple fade transitions for Angular Animate

Simple fade transitions for Angular Animate

Works with Angular Route and Angular UI Router.

Simply include Angular Animate and Angular Route/Angular UI Router in your project then add the CSS to your stylesheet. Page transitions should now be animated.


I originally wanted to have a fade-out as well as a fade-in, but Angular UI Router injects new content above rather than below old content, so the content fading-out was being shunted down. I you know a workaroud don't hesitate to comment!

.ng-enter { opacity: 0; transition: .3s opacity ease; height: 0; }
.ng-enter-active { opacity: 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment