Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple transforms using Compass

I'm in the case where I have multiple transforms on one element, so my question is how do you translate this into Compass while keeping the named transforms:

-webkit-transform: translateY(-100%) scale(0.5);
-moz-transform: translateY(-100%) scale(0.5);
transform: translateY(-100%) scale(0.5);
-ms-transform: translateY(-100%) scale(0.5);

Something like : @include translateY(-100%) scale(0.5);

Thank you.

like image 447
AliEzer Avatar asked Jun 17 '13 17:06

AliEzer


1 Answers

You need to use the transform mixin rather than the shortcut mixins for each specific transformation:

@include transform(translateY(-100%) scale(0.5));

It's pretty simple - just pass it the transforms you want, using the official css syntax.

like image 178
Miriam Suzanne Avatar answered Sep 28 '22 00:09

Miriam Suzanne