Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ginirsss/07e18319cc948b590df7 to your computer and use it in GitHub Desktop.
Save ginirsss/07e18319cc948b590df7 to your computer and use it in GitHub Desktop.
A Pen by thelitek.
%div.container
- (1..32).each do |i|
%div{:class => "fl fl--#{i}"}
@import "compass/css3";
$leaves : 32;
$duration : .3s;
html { height:100%; }
html { background:radial-gradient( #ccc, #9c9c9c ); }
.container { position:absolute; top:50%; left:50%;}
.circle { width:10em; height:10em; border:1em solid black; border-radius:50%; position:relative; top:50%; left:50%; }
.fl { position:absolute; width:100px; height:100px; border-radius:0 100% 0 100%;
@include transform-origin( 0 0 0 ); @include animation( show $duration 1 both ); }
@for $i from 1 through $leaves {
.fl--#{$i} { @include transform( rotate($i/$leaves *360deg) ); background:hsla( (($i/$leaves) * 255) , 100 , 50 , .15 );
$delay : $i * $duration * .5; @include animation-delay($delay); }
}
@include keyframes( show ) {
0% { opacity:0; }
100%{ opacity:1; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment