-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.animation() mixin #11221
Comments
You can add this yourself if you want: .animation (@name, @duration: 300ms, @delay: 0, @ease: ease) {
-webkit-animation: @name @duration @delay @ease;
-moz-animation: @name @duration @delay @ease;
-ms-animation: @name @duration @delay @ease;
} Or better yet use Autoprefixer with your current preprossor, or download Prepros and use the Autoprefixer option when you compile it. |
I said this because of there are a lot transition and transform mixins, can For example, look at progress-bars.less. Progress bars use animations. 2013/10/25 Elijah Fowler notifications@github.com
Zlatan Vasović - ZDroid |
@ElijahFowler Example code: // 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;
} @mdo Will the pull request help with this? I can send a pr with |
@zdroid Yeah, let's do it. I'd prefer a super short mixin though, like our .animation (@animation) {
-webkit-animation: @animation;
-moz-animation: @animation;
-ms-animation: @animation;
} Keeps it super open, unless folks have something that's more advantageous without being overly verbose. |
I'll. Thanks for reply. 2013/10/26 Mark Otto notifications@github.com
Zlatan Vasović - ZDroid |
It would be nice to have
.animation(...)
mixin for animations, like for progress bars.The text was updated successfully, but these errors were encountered: