aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngRepeat.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-11-05 20:19:45 -0500
committerIgor Minar2013-11-05 21:21:18 -0800
commitaba0fe683040f753f60a0f8030777d94aa9f58bf (patch)
treea8372a4fd3e96ac5d046164dc03904ed98e0bdee /src/ng/directive/ngRepeat.js
parentb1d4d580e5021d5890d684847b205701be15d292 (diff)
downloadangular.js-aba0fe683040f753f60a0f8030777d94aa9f58bf.tar.bz2
chore(docs): refactor/improve new CSS transition code in examples
Diffstat (limited to 'src/ng/directive/ngRepeat.js')
-rw-r--r--src/ng/directive/ngRepeat.js40
1 files changed, 13 insertions, 27 deletions
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js
index 9e5ad2f5..c7d0c005 100644
--- a/src/ng/directive/ngRepeat.js
+++ b/src/ng/directive/ngRepeat.js
@@ -140,49 +140,35 @@
border:1px solid black;
list-style:none;
margin:0;
- padding:0;
+ padding:0 10px;
}
- .example-animate-container > li {
- padding:10px;
+ .animate-repeat {
+ line-height:40px;
list-style:none;
+ box-sizing:border-box;
}
+ .animate-repeat.ng-move,
.animate-repeat.ng-enter,
- .animate-repeat.ng-leave,
- .animate-repeat.ng-move {
+ .animate-repeat.ng-leave {
-webkit-transition:all linear 0.5s;
- -moz-transition:all linear 0.5s;
- -o-transition:all linear 0.5s;
transition:all linear 0.5s;
}
+ .animate-repeat.ng-leave.ng-leave-active,
+ .animate-repeat.ng-move,
.animate-repeat.ng-enter {
- line-height:0;
opacity:0;
- padding-top:0;
- padding-bottom:0;
- }
- .animate-repeat.ng-enter.ng-enter-active {
- line-height:20px;
- opacity:1;
- padding:10px;
+ max-height:0;
}
- .animate-repeat.ng-leave {
+ .animate-repeat.ng-leave,
+ .animate-repeat.ng-move.ng-move-active,
+ .animate-repeat.ng-enter.ng-enter-active {
opacity:1;
- line-height:20px;
- padding:10px;
+ max-height:40px;
}
- .animate-repeat.ng-leave.ng-leave-active {
- opacity:0;
- line-height:0;
- padding-top:0;
- padding-bottom:0;
- }
-
- .animate-repeat.ng-move { }
- .animate-repeat.ng-move.ng-move-active { }
</file>
<file name="scenario.js">
it('should render initial data set', function() {