Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Created March 16, 2017 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johhansantana/3264dcd6371b74a9d61b75f5d737b2a4 to your computer and use it in GitHub Desktop.
Save johhansantana/3264dcd6371b74a9d61b75f5d737b2a4 to your computer and use it in GitHub Desktop.
Angular animate using angular-animate
<div class="animate" ng-hide="loading">
...
</div>
.animate.ng-enter,
.animate.ng-leave {
transition: all ease 1s;
}
.animate.ng-leave.animate.ng-leave-active,
.animate.ng-enter {
opacity: 0;
}
.animate.ng-enter.ng-enter-active,
.animate.ng-leave {
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment