cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              .lotus
	%ul
		- 8.times do
			%li
				%svg{:viewBox => "0 0 72 200"}
					%path{:d => "M0,100 C0,66.6666667 12,33.3333333 36,0 C60,33.3333333 72,66.6666667 72,100 C72,133.333333 60,166.666667 36,200 C12,166.666667 0,133.333333 0,100 Z"}

.lotus
	%ul
		- 6.times do
			%li
				%svg{:viewBox => "0 0 72 200"}
					%path{:d => "M0,100 C0,66.6666667 12,33.3333333 36,0 C60,33.3333333 72,66.6666667 72,100 C72,133.333333 60,166.666667 36,200 C12,166.666667 0,133.333333 0,100 Z"}

.lotus
	%ul
		- 3.times do
			%li
				%svg{:viewBox => "0 0 72 200"}
					%path{:d => "M0,100 C0,66.6666667 12,33.3333333 36,0 C60,33.3333333 72,66.6666667 72,100 C72,133.333333 60,166.666667 36,200 C12,166.666667 0,133.333333 0,100 Z"}

%svg.gradient
	%defs
		%radialGradient{:cx => "50%", :cy => "5%", :fx => "50%", :fy => "5%", :r => "110%", :id =>"gradient"}
			%stop{:'stop-color' => "#FCFDF2", :offset => "0%"}
			%stop{:'stop-color' => "#E9BABA", :offset => "100%"}
            
          
!
            
              body, html {
	height: 100%;
}

body {
	perspective: 1000px;
	background: #363A3F;
}

body, div, ul, li {
	backface-visibility: hidden;
}
div, ul, li, svg {
	will-change: transform;
	transform-style: preserve-3d;
}
li, svg {
	transform-origin: center top;
}

.gradient {
	opacity: 0;
	height: 0;
	width: 0;
}

.lotus {
	transform-origin: center center;
	transform: rotateX(70deg);
	animation: rotate 20000ms linear infinite forwards;
	position: absolute;
	top: calc(50% - 18px);
	left: calc(50% - 18px);
	width: 36px;
	height: 36px;
	ul {
		position: relative;
		width: 36px;
		height: 36px;
	}
	li {
		position: absolute;
		svg {
			display: block;
			height: auto;
			path {
				fill: url(#gradient);
			}
		}
	}
	&:nth-child(1) {
		li {
			top: 18px;
			left: calc(50% - 18px);
			@for $i from 1 through 8 {
				&:nth-child(#{$i}) {
					transform: rotateZ(#{$i * 45}deg) rotateX(15deg) rotateY(5deg);
				}
			}
			svg {
				width: 72px;
				transform: rotateX(75deg);
				animation: bloom 1000ms cubic-bezier(0,.75,.25,1) forwards;
			}
		}
	}
	&:nth-child(2) {
		li {
			top: 15px;
			left: calc(50% - 15px);
			@for $i from 1 through 6 {
				&:nth-child(#{$i}) {
					transform: rotateZ(#{$i * 60}deg) rotateX(30deg) rotateY(5deg);
				}
			}
			svg {
				width: 60px;
				transform: rotateX(60deg);
				animation: bloom 1100ms cubic-bezier(0,.75,.25,1) 150ms forwards;
			}
		}
	}
	&:nth-child(3) {
		li {
			top: 12px;
			left: calc(50% - 12px);
			@for $i from 1 through 3 {
				&:nth-child(#{$i}) {
					transform: rotateZ(#{$i * 120}deg) rotateX(60deg) rotateY(5deg);
				}
			}
			svg {
				width: 48px;
				transform: rotateX(30deg);
				animation: bloom 1200ms cubic-bezier(0,.75,.25,1) 300ms forwards;
			}
		}
	}
}

@keyframes rotate {
	from { transform: rotateX(70deg) rotateZ(0deg); }
	to { transform: rotateX(70deg) rotateZ(360deg); }
}
@keyframes bloom {
	to { transform: none; }
}
            
          
!
999px
Loading ..................

Console