forked from angular-ui/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(carousel): use ngAnimate for animation
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235 Closes angular-ui#2067
- Loading branch information
Showing
3 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.ng-animate.item:not(.left):not(.right) { | ||
-webkit-transition: 0s ease-in-out left; | ||
transition: 0s ease-in-out left | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<div ng-class="{ | ||
'active': leaving || (active && !entering), | ||
'prev': (next || active) && direction=='prev', | ||
'next': (next || active) && direction=='next', | ||
'right': direction=='prev', | ||
'left': direction=='next' | ||
'active': active | ||
}" class="item text-center" ng-transclude></div> |