Skip to content

Instantly share code, notes, and snippets.

@krystalcampioni
Last active January 20, 2016 15:25
Show Gist options
  • Save krystalcampioni/73f04f6a09435fd950a9 to your computer and use it in GitHub Desktop.
Save krystalcampioni/73f04f6a09435fd950a9 to your computer and use it in GitHub Desktop.
@for $i from 1 through 12 {
$new-angle:$angle*$i; // every time the loop starts again the $new-angle is updated with $angle * the current position of the list
ul li:nth-of-type(#{$i}){
border-left: 205px solid transparent;// this creates a triangle
border-top: 120px solid $main-color;// this creates a triangle
height: 0;
left: 50%;
list-style: none;
position: absolute;
top: 50%;
transform-origin: 0 0;
transform: rotate(#{$new-angle}deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment