aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngInclude.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/ngInclude.js
parentb1d4d580e5021d5890d684847b205701be15d292 (diff)
downloadangular.js-aba0fe683040f753f60a0f8030777d94aa9f58bf.tar.bz2
chore(docs): refactor/improve new CSS transition code in examples
Diffstat (limited to 'src/ng/directive/ngInclude.js')
-rw-r--r--src/ng/directive/ngInclude.js20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js
index 13b47234..f4b84fcf 100644
--- a/src/ng/directive/ngInclude.js
+++ b/src/ng/directive/ngInclude.js
@@ -51,8 +51,8 @@
</select>
url of the template: <tt>{{template.url}}</tt>
<hr/>
- <div class="example-animate-container">
- <div class="include-example" ng-include="template.url"></div>
+ <div class="slide-animate-container">
+ <div class="slide-animate" ng-include="template.url"></div>
</div>
</div>
</file>
@@ -71,7 +71,7 @@
Content of template2.html
</file>
<file name="animations.css">
- .example-animate-container {
+ .slide-animate-container {
position:relative;
background:white;
border:1px solid black;
@@ -79,14 +79,12 @@
overflow:hidden;
}
- .example-animate-container > div {
+ .slide-animate {
padding:10px;
}
- .include-example.ng-enter, .include-example.ng-leave {
+ .slide-animate.ng-enter, .slide-animate.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;
position:absolute;
@@ -98,17 +96,17 @@
padding:10px;
}
- .include-example.ng-enter {
+ .slide-animate.ng-enter {
top:-50px;
}
- .include-example.ng-enter.ng-enter-active {
+ .slide-animate.ng-enter.ng-enter-active {
top:0;
}
- .include-example.ng-leave {
+ .slide-animate.ng-leave {
top:0;
}
- .include-example.ng-leave.ng-leave-active {
+ .slide-animate.ng-leave.ng-leave-active {
top:50px;
}
</file>