Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Created January 15, 2016 20:52
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/b47cbf924b146721496e to your computer and use it in GitHub Desktop.
Save johhansantana/b47cbf924b146721496e to your computer and use it in GitHub Desktop.
delay css ng-if
.slide-up{
position:relative;
--webkit-transition: 0.5s ease-in-out all;
-moz-transition: 0.5s ease-in-out all;
-o-transition: 0.5s ease-in-out all;
transition: 0.5s ease-in-out all;
}
.slide-up.ng-enter{
--webkit-transition-delay: 0.5s;
-moz-transition-delay: 0.5s;
-o-transition-delay: 0.5s;
transition-delay: 0.5s;
opacity:0;
bottom:-100px;
}
.slide-up.ng-enter.ng-enter-active{
opacity:1;
bottom:0;
}
.slide-up.ng-leave{
opacity:1;
bottom:0;
}
.slide-up.ng-leave.ng-leave-active{
opacity:0;
bottom:-100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment