Skip to content

Instantly share code, notes, and snippets.

@jeffersonsouza
Forked from ravenlp/gist:96a66df5dbc1b96afba7
Last active September 22, 2015 10:04
Show Gist options
  • Save jeffersonsouza/be44fcfc213d142090ce to your computer and use it in GitHub Desktop.
Save jeffersonsouza/be44fcfc213d142090ce 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