Skip to content

Commit

Permalink
Addded transform-origin to transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Aug 19, 2011
1 parent 2da2b19 commit 0943d14
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/assets/stylesheets/css3/_transform.scss
Expand Up @@ -6,3 +6,14 @@
-o-transform: $property;
transform: $property;
}

@mixin transform-origin($axes: 50%) {
// x-axis - left | center | right | length | %
// y-axis - top | center | bottom | length | %
// z-axis - length
-webkit-transform-origin: $axes;
-moz-transform-origin: $axes;
-ms-transform-origin: $axes;
-o-transform-origin: $axes;
transform-origin: $axes;
}
4 changes: 3 additions & 1 deletion readme.md
Expand Up @@ -187,9 +187,10 @@ Takes up to 10 gradients. Position and shape are required.
@include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef);


###Transform
###Transform & Transform-origin

@include transform(translateY(50px));
@include transform-origin(center top);


###Transitions
Expand Down Expand Up @@ -355,6 +356,7 @@ Create beautiful buttons by defining a style and color argument; using a single
@ linear-gradient(*args)
@ radial-gradient(*args)
@ transform(*args)
@ transform-origin(*args)

transition
@ transition(*args)
Expand Down

0 comments on commit 0943d14

Please sign in to comment.