Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                .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%"}
              
            
!

CSS

              
                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; }
}
              
            
!

JS

              
                // ⟁ \\
              
            
!
999px

Console