Skip to content

Instantly share code, notes, and snippets.

@geekgonecrazy
Last active December 29, 2015 09:19
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 geekgonecrazy/7649049 to your computer and use it in GitHub Desktop.
Save geekgonecrazy/7649049 to your computer and use it in GitHub Desktop.
Css for angular hide and show
/* Starting Hide. Aka currently shown, angular is adding the ng-hide class */
.lineItemExpanded.ng-hide-add {
opacity: 1.0;
display: block !important;
transition: opacity .5s;
margin-top: 0px;
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
}
/* Hidden. angular as now added the ng-hide class*/
.lineItemExpanded.ng-hide-add-active {
opacity: 0;
margin-top: -265px;
}
/* Starting show. Currently hidden with the ng-hide class applied. */
.lineItemExpanded.ng-hide-remove {
opacity: 0;
display: block !important;
transition: opacity .5s;
margin-top: -265px;
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) .5s;
}
/* Visible. The ng-hide class is now removed. */
.lineItemExpanded.ng-hide-remove-active {
opacity: 1;
margin-top: 0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment