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

              
                <div class="front"></div>
              
            
!

CSS

              
                *.
*:before,
*:after {
	margin: 0;
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: #000;
}

.front {
	position: relative;
	width: 355px;
	height: 420px;
  margin: 20px auto;
	background: 
		linear-gradient(to bottom, white 33%, transparent 33%, transparent 66%, white 66%),
		linear-gradient(to bottom, white 33%, transparent 33%, transparent 66%, white 66%),
		/**/
		radial-gradient(ellipse at center, white 90%, transparent 90%),
		radial-gradient(ellipse at center, white 90%, transparent 90%),
		/**/
		radial-gradient(ellipse at center, #1ea049 70%, transparent 70%),
		radial-gradient(ellipse at center, #bf196a 70%, transparent 70%),
		radial-gradient(ellipse at center, #f4a01a 70%, transparent 70%),
		radial-gradient(ellipse at center, #1197cd 70%, transparent 70%),
		radial-gradient(ellipse at center, #20378b 70%, transparent 70%),
		radial-gradient(ellipse at center, #dd3722 70%, transparent 70%),
		/**/
		linear-gradient(36deg, transparent 30%, black 30%, black 50%, transparent 50%),
		linear-gradient(144deg, transparent 30%, black 30%, black 50%, transparent 50%),
		linear-gradient(216deg, transparent 30%, black 30%, black 50%, transparent 50%),
		linear-gradient(324deg, transparent 30%, black 30%, black 50%, transparent 50%),
		/**/
		radial-gradient(ellipse at center, white 70%, transparent 70%);
	background-position:
		12px calc(50%),
		calc(100% - 12px) calc(50%),
		/**/
		167px 77px,
		167px 323px,
		/**/
		0px 96px,
		calc(100% + 1px) 96px,
		0px 283px,
		calc(100% + 1px) 283px,
		50% 0,
		50% calc(100% + 1px),
		/**/
		184px 165px,
		184px 209px,
		116px 209px,
		116px 165px,
		/**/
		center center;
	background-size:
		18px 102px,
		18px 102px,
		/**/
		23px 23px,
		23px 23px,
		/**/
		45px 45px,
		45px 45px,
		45px 45px,
		45px 45px,
		45px 45px,
		45px 45px,
		/**/
		56px 44px,
		56px 44px,
		56px 44px,
		56px 44px,
		/**/
		180px 180px;
	background-repeat: no-repeat;
}

.front:after,
.front:before {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	content: '';
	transform: rotate(60deg);
	background: 
		linear-gradient(to bottom, white 33%, transparent 33%, transparent 66%, white 66%),
		linear-gradient(to bottom, white 33%, transparent 33%, transparent 66%, white 66%),
		/**/
		radial-gradient(ellipse at center, white 90%, transparent 90%),
		radial-gradient(ellipse at center, white 90%, transparent 90%);
	background-position: 
		5px calc(50%),
		calc(100% - 5px) calc(50%),
		/**/
		167px 77px,
		167px 323px;
	background-size: 
		18px 102px,
		18px 102px,
		/**/
		23px 23px,
		23px 23px;
	background-repeat: no-repeat;
}

.front:before {
	transform: rotate(-60deg);
}
              
            
!

JS

              
                
              
            
!
999px

Console