12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Transition
- @mixin transition($what: all, $time: 0.2s, $how: ease-in-out) {
- -webkit-transition: $what $time $how;
- -moz-transition: $what $time $how;
- -ms-transition: $what $time $how;
- -o-transition: $what $time $how;
- transition: $what $time $how;
- }
- // Transform
- @mixin transform($transforms) {
- -moz-transform: $transforms;
- -o-transform: $transforms;
- -ms-transform: $transforms;
- -webkit-transform: $transforms;
- transform: $transforms;
- }
- // rotate
- @mixin rotate ($deg) {
- @include transform(rotate(#{$deg}deg));
- }
- // scale
- @mixin scale($scale) {
- @include transform(scale($scale));
- }
- // translate
- @mixin translate ($x, $y) {
- @include transform(translate($x, $y));
- }
- // skew
- @mixin skew ($x, $y) {
- @include transform(skew(#{$x}deg, #{$y}deg));
- }
- //transform origin
- @mixin transform-origin ($origin) {
- moz-transform-origin: $origin;
- -o-transform-origin: $origin;
- -ms-transform-origin: $origin;
- -webkit-transform-origin: $origin;
- transform-origin: $origin;
- }
|