Skip to content

Commit

Permalink
Merge pull request #11244 from ZDroid/animation
Browse files Browse the repository at this point in the history
Add .animation() mixin
  • Loading branch information
mdo committed Oct 26, 2013
2 parents 4fac7b6 + aff291e commit 64ffed8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
3 changes: 0 additions & 3 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -5410,9 +5410,6 @@ a.thumbnail.active {

.progress.active .progress-bar {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-moz-animation: progress-bar-stripes 2s linear infinite;
-ms-animation: progress-bar-stripes 2s linear infinite;
-o-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,17 @@
-moz-perspective-origin: @perspective;
perspective-origin: @perspective;
}
.transform-origin(@origin){
.transform-origin(@origin) {
-webkit-transform-origin: @origin;
-moz-transform-origin: @origin;
transform-origin: @origin;
}

// Animations
.animation(@animation) {
-webkit-animation: @animation;
animation: @animation;
}

// Backface visibility
// Prevent browsers from flickering when using CSS 3D transforms.
Expand Down
6 changes: 1 addition & 5 deletions less/progress-bars.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@

// Call animation for the active one
.progress.active .progress-bar {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-moz-animation: progress-bar-stripes 2s linear infinite;
-ms-animation: progress-bar-stripes 2s linear infinite;
-o-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite;
.animation(progress-bar-stripes 2s linear infinite);
}


Expand Down

0 comments on commit 64ffed8

Please sign in to comment.