Created
June 3, 2014 18:47
-
-
Save zumwalt/b5ed76771ce58ca83b0e to your computer and use it in GitHub Desktop.
Rotated text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin rotated-text($num-letters: 100, $angle-span: 180deg, $angle-offset: 0deg) { | |
$angle-per-char: $angle-span / $num-letters; | |
@for $i from 1 through $num-letters { | |
.char#{$i} { | |
@include transform(rotate($angle-offset + $angle-per-char * $i)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment