Is it possible to use Compass or SASS to output the following CSS transition that will output all the various vendor prefixes:
-webkit-transition: all 0.3s ease-in-out;
Can anyone point me to the correct library?
Mixin for creating animations using single or "all" property transitions
@include transition(PROPERTY DURATION DELAY(OPT) TIMING-FUNCTION)
@mixin transition($transition) {
-webkit-transition: $transition;
-moz-transition: $transition;
-ms-transition: $transition;
-o-transition: $transition;
transition: $transition;
}
Mixin for creating animations using multiple property transitions
@include multi-transition("PROPERTY DURATION DELAY(OPT) TIMING-FUNCTION, PROPERTY DURATION DELAY(OPT) TIMING-FUNCTION")
@mixin multi-transition($transition) {
-webkit-transition: #{$transition};
-moz-transition: #{$transition};
-ms-transition: #{$transition};
-o-transition: #{$transition};
transition: #{$transition};
}
Use compass' transition
mixin:
@include transition(all 0.3s ease-in-out);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With