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

              
                <article class="icon-wrapper mix-blend-mode">
	<div class="icon photos">
		<div class="normal">
			<div class="top side"></div>
			<div class="bottom side"></div>
			<div class="left side"></div>
			<div class="right side"></div>
		</div>
		<div class="rotated">
			<div class="top side"></div>
			<div class="bottom side"></div>
			<div class="left side"></div>
			<div class="right side"></div>
		</div>
	</div>
	<h1 class="title">Photos</h1>
</article>
              
            
!

CSS

              
                // More Icons over at http://www.cssappicons.com

$padding: 32px;
$icon-size: 256px;
$icon-radius: 22.53125%;
$grid-width: 640px;
$base-font-size: 20px;

*{
  box-sizing: border-box;
}

body{
  background: black;
  margin: 0;
  padding: 0;
}

.icon-wrapper{
  width: 100%;
  padding: ($padding / 2);
  overflow: hidden;
  position: relative;
  padding: $padding;
  flex-basis: ($icon-size + ($padding * 2));
	

	.title{
		text-align: center;
		font-family: 'HelveticaNeue-Light', Helvetica, sans-serif;
		font-weight: normal;
    color: #FFF;
    margin: ($padding / 2) auto 0;
    font-size: 30px; 
	}
}

.icon{
	border-radius: $icon-radius;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
	font-size: 200%;
	height: $icon-size;
	margin: 0 auto;
	position: relative;
	width: $icon-size;
	z-index: 0;
	-webkit-user-select: none;
	transform-origin: 0 0;




	&.blank{
		background: none;
		box-shadow: 0, 0, 0, rgba(0,0,0,0);
	}

}

.photos{

	background: #fff;

	.side{
		height: 40%;
		width: 27%;
		position: absolute;
		border-radius: 50px;
		mix-blend-mode: multiply;
	}



	.top{
		background: linear-gradient(#e56500 0%, #f9b000 50%, #e6bf00 100%);
		left: 50%;
		top: 7%;
		transform: translate(-50%,0);
		z-index: 1;

	}

	.bottom{
		background: linear-gradient(to top, #4f97d3 0, #6782c6 50%, #5d5fa7 100%);
		z-index: 1;
		left: 50%;
		bottom: 7%;
		transform: translate(-50%,0);
		z-index: 5;
	}

	.left{
		background: linear-gradient(to right, #b969ab 0, #da6784 50%, #c72943 100%);
		left: 7%;
		top: 50%;
		transform: translate(0,-50%);
		height: 27%;
		width: 40%;
		z-index: 8;

	}

	.right{
		background: linear-gradient(to left, #adc900 0, #82be3d 50%, #44912a 100%);
		z-index: 1;
		right: 7%;
		top: 50%;
		transform: translate(0,-50%);
		height: 27%;
		width: 40%;
		z-index: 3;
	}


	.rotated{
		transform: rotate(-45deg);
		width: 100%;
		height: 100%;
		mix-blend-mode: darken;

		.side{
			mix-blend-mode: multiply;
		}

		.top{ // Top Left
			background: linear-gradient(#e74c55 0, #e05d34 50%, #e25800 100%);
		}

		.bottom{ // Bottom Right
			background: linear-gradient(to top, #58ab59 0, #63b2b5 50%, #3e86c7 100%);
		}

		.left{ // Bottom Left
			background: linear-gradient(to left, #6e65af 0%, #966bb1 50%, #8e5399 100%);
		}

		.right{ // Top Right
			background: linear-gradient(to left, #f9d500 0, #d1d500 50%, #a7c400 100%);
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console