<p>Exemple</p>
// Transformation générique
//
// @param {Transform} $transforms - Paramètres de transformation
@mixin transform($transforms) {
  -moz-transform: $transforms;
  -o-transform: $transforms;
  -ms-transform: $transforms;
  -webkit-transform: $transforms;
  transform: $transforms;
}

// Transformation origine
//
// @param {Origin} $origin - Point initial pour la transformation
@mixin transform-origin ($origin) {
  -moz-transform-origin: $origin;
  -o-transform-origin: $origin;
  -ms-transform-origin: $origin;
  -webkit-transform-origin: $origin;
  transform-origin: $origin;
}

// Rotation
//
// @param {Rotate} $deg - Angle de la rotation
@mixin rotate ($deg) {
  @include transform(rotate(#{$deg}deg));
}


/* DEMO */
p {
  @include rotate(90);
  @include transform-origin(left bottom);
  
  font-size: 30px;
  color: #f00;
  width: 120px;
  border: 3px solid #f00;
  margin: 0;
  padding:0;
  background-color: #000;
  color: #fff;
  padding: 10px;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.