diff options
| author | Matias Niemelàˆ | 2013-05-07 17:11:39 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-05-08 16:03:31 -0700 |
| commit | 11f712bc3e310302eb2e8691cf6d110bdcde1810 (patch) | |
| tree | 5e8b27a3dc2a8b0b18a4e0560f21f007206772b5 /src/ng/directive | |
| parent | 14757874a7cea7961f31211b245c417bd4b20512 (diff) | |
| download | angular.js-11f712bc3e310302eb2e8691cf6d110bdcde1810.tar.bz2 | |
chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active
BREAKING CHANGE: css classes foo-setup/foo-start become foo/foo-active
The CSS transition classes have changed suffixes. To migrate rename
.foo-setup {...} to .foo {...}
.foo-start {...} to .foo-active {...}
or for type: enter, leave, move, show, hide
.foo-type-setup {...} to .foo-type {...}
.foo-type-start {...} to .foo-type-active {...}
Diffstat (limited to 'src/ng/directive')
| -rw-r--r-- | src/ng/directive/ngInclude.js | 12 | ||||
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 18 | ||||
| -rw-r--r-- | src/ng/directive/ngShowHide.js | 20 | ||||
| -rw-r--r-- | src/ng/directive/ngSwitch.js | 10 | ||||
| -rw-r--r-- | src/ng/directive/ngView.js | 10 |
5 files changed, 35 insertions, 35 deletions
diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 730c7bdf..1187c733 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -61,8 +61,8 @@ <div>Content of template2.html</div> </file> <file name="animations.css"> - .example-leave-setup, - .example-enter-setup { + .example-leave, + .example-enter { -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; -ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; @@ -81,17 +81,17 @@ padding:10px; } - .example-enter-setup { + .example-enter { top:-50px; } - .example-enter-setup.example-enter-start { + .example-enter.example-enter-active { top:0; } - .example-leave-setup { + .example-leave { top:0; } - .example-leave-setup.example-leave-start { + .example-leave.example-leave-active { top:50px; } </file> diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 0fd53c2f..330f6abb 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -88,9 +88,9 @@ </div> </file> <file name="animations.css"> - .example-repeat-enter-setup, - .example-repeat-leave-setup, - .example-repeat-move-setup { + .example-repeat-enter, + .example-repeat-leave, + .example-repeat-move { -webkit-transition:all linear 0.5s; -moz-transition:all linear 0.5s; -ms-transition:all linear 0.5s; @@ -98,26 +98,26 @@ transition:all linear 0.5s; } - .example-repeat-enter-setup { + .example-repeat-enter { line-height:0; opacity:0; } - .example-repeat-enter-setup.example-repeat-enter-start { + .example-repeat-enter.example-repeat-enter-active { line-height:20px; opacity:1; } - .example-repeat-leave-setup { + .example-repeat-leave { opacity:1; line-height:20px; } - .example-repeat-leave-setup.example-repeat-leave-start { + .example-repeat-leave.example-repeat-leave-active { opacity:0; line-height:0; } - .example-repeat-move-setup { } - .example-repeat-move-setup.example-repeat-move-start { } + .example-repeat-move { } + .example-repeat-move.example-repeat-move-active { } </file> <file name="scenario.js"> it('should render initial data set', function() { diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index 7ccc0aa0..7ef7008c 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -45,7 +45,7 @@ </div> </file> <file name="animations.css"> - .example-show-setup, .example-hide-setup { + .example-show, .example-hide { -webkit-transition:all linear 0.5s; -moz-transition:all linear 0.5s; -ms-transition:all linear 0.5s; @@ -53,12 +53,12 @@ transition:all linear 0.5s; } - .example-show-setup { + .example-show { line-height:0; opacity:0; padding:0 10px; } - .example-show-start.example-show-start { + .example-show-active.example-show-active { line-height:20px; opacity:1; padding:10px; @@ -66,14 +66,14 @@ background:white; } - .example-hide-setup { + .example-hide { line-height:20px; opacity:1; padding:10px; border:1px solid black; background:white; } - .example-hide-start.example-hide-start { + .example-hide-active.example-hide-active { line-height:0; opacity:0; padding:0 10px; @@ -154,7 +154,7 @@ var ngShowDirective = ['$animator', function($animator) { </div> </file> <file name="animations.css"> - .example-show-setup, .example-hide-setup { + .example-show, .example-hide { -webkit-transition:all linear 0.5s; -moz-transition:all linear 0.5s; -ms-transition:all linear 0.5s; @@ -162,12 +162,12 @@ var ngShowDirective = ['$animator', function($animator) { transition:all linear 0.5s; } - .example-show-setup { + .example-show { line-height:0; opacity:0; padding:0 10px; } - .example-show-start.example-show-start { + .example-show.example-show-active { line-height:20px; opacity:1; padding:10px; @@ -175,14 +175,14 @@ var ngShowDirective = ['$animator', function($animator) { background:white; } - .example-hide-setup { + .example-hide { line-height:20px; opacity:1; padding:10px; border:1px solid black; background:white; } - .example-hide-start.example-hide-start { + .example-hide.example-hide-active { line-height:0; opacity:0; padding:0 10px; diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index 8cf8945d..f36e651c 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -71,7 +71,7 @@ } </file> <file name="animations.css"> - .example-leave-setup, .example-enter-setup { + .example-leave, .example-enter { -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; -ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; @@ -90,17 +90,17 @@ padding:10px; } - .example-enter-setup { + .example-enter { top:-50px; } - .example-enter-start.example-enter-start { + .example-enter.example-enter-active { top:0; } - .example-leave-setup { + .example-leave { top:0; } - .example-leave-start.example-leave-start { + .example-leave.example-leave-active { top:50px; } </file> diff --git a/src/ng/directive/ngView.js b/src/ng/directive/ngView.js index b553544c..9b5694dd 100644 --- a/src/ng/directive/ngView.js +++ b/src/ng/directive/ngView.js @@ -61,7 +61,7 @@ </file> <file name="animations.css"> - .example-leave-setup, .example-enter-setup { + .example-leave, .example-enter { -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s; -moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s; -ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s; @@ -87,15 +87,15 @@ padding:10px; } - .example-enter-setup { + .example-enter { left:100%; } - .example-enter-setup.example-enter-start { + .example-enter.example-enter-active { left:0; } - .example-leave-setup { } - .example-leave-setup.example-leave-start { + .example-leave { } + .example-leave.example-leave-active { left:-100%; } </file> |
