From 11f712bc3e310302eb2e8691cf6d110bdcde1810 Mon Sep 17 00:00:00 2001 From: Matias Niemelàˆ Date: Tue, 7 May 2013 17:11:39 -0400 Subject: 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 {...} --- src/ng/directive/ngInclude.js | 12 ++++++------ src/ng/directive/ngRepeat.js | 18 +++++++++--------- src/ng/directive/ngShowHide.js | 20 ++++++++++---------- src/ng/directive/ngSwitch.js | 10 +++++----- src/ng/directive/ngView.js | 10 +++++----- 5 files changed, 35 insertions(+), 35 deletions(-) (limited to 'src/ng/directive') 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 @@
Content of template2.html
- .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; } 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 @@ - .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 { } 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 @@ - .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) { - .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 @@ } - .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; } 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 @@ - .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%; } -- cgit v1.2.3