mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
docs(guide): fixes to ngShow/ngHide animations
This commit is contained in:
committed by
Matias Niemelä
parent
e18db78d77
commit
d2963ad265
@@ -33,23 +33,14 @@ Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
|
||||
background:white;
|
||||
}
|
||||
|
||||
.sample-show-hide.ng-hide-add, .sample-show-hide.ng-hide-remove {
|
||||
.sample-show-hide {
|
||||
-webkit-transition:all linear 0.5s;
|
||||
-moz-transition:all linear 0.5s;
|
||||
-o-transition:all linear 0.5s;
|
||||
transition:all linear 0.5s;
|
||||
display:block!important;
|
||||
}
|
||||
|
||||
.sample-show-hide.ng-hide-add.ng-hide-add-active,
|
||||
.sample-show-hide.ng-hide-remove {
|
||||
.sample-show-hide.ng-hide {
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
.sample-show-hide.ng-hide-add,
|
||||
.sample-show-hide.ng-hide-remove.ng-hide-remove-active {
|
||||
opacity:1;
|
||||
}
|
||||
</file>
|
||||
</example>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user