diff options
| author | Matias Niemelä | 2013-11-05 20:19:45 -0500 |
|---|---|---|
| committer | Igor Minar | 2013-11-05 21:21:18 -0800 |
| commit | aba0fe683040f753f60a0f8030777d94aa9f58bf (patch) | |
| tree | a8372a4fd3e96ac5d046164dc03904ed98e0bdee /src/ng/directive/ngIf.js | |
| parent | b1d4d580e5021d5890d684847b205701be15d292 (diff) | |
| download | angular.js-aba0fe683040f753f60a0f8030777d94aa9f58bf.tar.bz2 | |
chore(docs): refactor/improve new CSS transition code in examples
Diffstat (limited to 'src/ng/directive/ngIf.js')
| -rw-r--r-- | src/ng/directive/ngIf.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js index 78547f47..5ff889c2 100644 --- a/src/ng/directive/ngIf.js +++ b/src/ng/directive/ngIf.js @@ -59,10 +59,11 @@ padding:10px; } + /* + The transition styles can also be placed on the CSS base class above + */ .animate-if.ng-enter, .animate-if.ng-leave { -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; - -moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; - -o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; } @@ -71,8 +72,8 @@ opacity:0; } - .animate-if.ng-enter.ng-enter-active, - .animate-if.ng-leave { + .animate-if.ng-leave, + .animate-if.ng-enter.ng-enter-active { opacity:1; } </file> |
