Skip to content

Instantly share code, notes, and snippets.

@HiroAgustin
Last active January 1, 2016 06:38
Show Gist options
  • Save HiroAgustin/8105919 to your computer and use it in GitHub Desktop.
Save HiroAgustin/8105919 to your computer and use it in GitHub Desktop.
Position x elements in a circle.
$elementsCount: 12;
$angle: 360deg / $elementsCount;
@for $i from 0 through $elementsCount - 1 {
.rotation-#{$i} {
transform: rotate($i * $angle + 90deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment