Last active
January 20, 2016 15:25
-
-
Save krystalcampioni/73f04f6a09435fd950a9 to your computer and use it in GitHub Desktop.
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
@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