Skip to content

Instantly share code, notes, and snippets.

@ravenlp
Last active September 22, 2015 10:04
Show Gist options
  • Save ravenlp/96a66df5dbc1b96afba7 to your computer and use it in GitHub Desktop.
Save ravenlp/96a66df5dbc1b96afba7 to your computer and use it in GitHub Desktop.
Angular ng-hide fade in/out animation
.fadable {
transition: 0s linear all;
}
.fadable.ng-hide-remove {
opacity: 0;
display: block !important;
transition: 0.5s linear all;
}
.fadable.ng-hide-remove.ng-hide-remove-active {
opacity: .5;
}
.fadable.ng-hide-add {
opacity: .5;
display: block !important;
transition: 0.5s linear all;
}
.fadable.ng-hide-add.ng-hide-add-active {
opacity: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment