Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Behavior

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="title">*CSS Blend Mode Visualization*</div>
<div class="intro">CSS blend modes are used to merge two overlapping elements together to create a visual hybrid. If you've ever worked with Photoshop, you'll likely recognize them from the "layers" panel. For more information on using blend modes, I recommend starting with <a href="https://css-tricks.com/basics-css-blend-modes/">this</a> guide.<br><br>
	<span><span>Hover or tap</span> over the images below to see the effect of each mode. In these examples, the '*' assumes either "mix"-blend-mode, or "background"-blend-mode.</span>
</div>

<div class="container">
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
	<div class="tile">
	</div>
</div>

<div class="containerBg">
	<div class="blendTi1">*-blend-mode: multiply;
	</div>
	<div class="blendTi2">*-blend-mode: screen;
	</div>
	<div class="blendTi3">*-blend-mode: overlay;
	</div>
	<div class="blendTi4">*-blend-mode: darken;
	</div>
	<div class="blendTi5">*-blend-mode: lighten;
	</div>
	<div class="blendTi6">*-blend-mode: color-dodge;
	</div>
	<div class="blendTi7">*-blend-mode: color-burn;
	</div>
	<div class="blendTi8">*-blend-mode: hard-light;
	</div>
	<div class="blendTi9">*-blend-mode: soft-light;
	</div>
	<div class="blendTi10">*-blend-mode: difference;
	</div>
	<div class="blendTi11">*-blend-mode: exclusion;
	</div>
	<div class="blendTi12">*-blend-mode: hue;
	</div>
	<div class="blendTi13">*-blend-mode: saturation;
	</div>
	<div class="blendTi14">*-blend-mode: color;
	</div>
	<div class="blendTi15">*-blend-mode: luminosity;
	</div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Ropa+Sans|Roboto+Condensed');

/* <mix-blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge |color-burn | hard-light | soft-light | difference | exclusion | hue | 
saturation | color | luminosity */

body {
	background: #222;
	font-family: 'Ropa Sans', sans-serif;
}

.title {
	color: #eee;
	font-size: 6vw;
	text-align:center;
	margin-bottom: 20px;
}

.intro {
	color: #ffcc99;
	font-size: 45px;
	text-align: center;
	width: 70%;
	margin-left: 15%;
	margin-bottom: 80px;
	font-family: 'Roboto Condensed', sans-serif;
}

.intro>span {
	color: #eee;
}

.intro>span>span {
	color: #EE4444;
}

.intro > a:link {
	color: #eee;
}

.intro > a:visited {
	color: #8c6f54;
}

.container, .containerBg {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	position: absolute;
}

.tile {
	width: 500px;
	height: 350px;
	background-image: url("https://anchoridea.com/img/blendModeTool-dog.jpeg");
	background-size: cover;
	margin: 40px 30px;
}

.blendTi1, .blendTi2, .blendTi3, .blendTi4, .blendTi5, .blendTi6, .blendTi7, .blendTi8, .blendTi9, .blendTi10, .blendTi11, .blendTi12, .blendTi13, .blendTi14, .blendTi15 {
	width: 500px;
	height: 350px;
	margin: 40px 30px;
	background-image: url("https://anchoridea.com/img/blendModeTool-bg.jpg");
	background-size: cover;
	color: #eee;
	font-size: 35px;
}

.blendTi1:active, .blendTi1:hover {
	mix-blend-mode: multiply;
}

.blendTi2:active, .blendTi2:hover {
	mix-blend-mode: screen;
}

.blendTi3:active, .blendTi3:hover {
	mix-blend-mode: overlay;
}

.blendTi4:active, .blendTi4:hover {
	mix-blend-mode: darken;
}

.blendTi5:active, .blendTi5:hover {
	mix-blend-mode: lighten;
}

.blendTi6:active, .blendTi6:hover {
	mix-blend-mode: color-dodge;
}

.blendTi7:active, .blendTi7:hover {
	mix-blend-mode: color-burn;
}

.blendTi8:active, .blendTi8:hover {
	mix-blend-mode: hard-light;
}

.blendTi9:active, .blendTi9:hover {
	mix-blend-mode: soft-light;
}

.blendTi10:active, .blendTi10:hover {
	mix-blend-mode: difference;
}

.blendTi11:active, .blendTi11:hover {
	mix-blend-mode: exclusion;
}

.blendTi12:active, .blendTi12:hover {
	mix-blend-mode: hue;
}

.blendTi13:active, .blendTi13:hover {
	mix-blend-mode: saturation;
}

.blendTi14:active, .blendTi14:hover {
	mix-blend-mode: color;
}

.blendTi15:active, .blendTi15:hover {
	mix-blend-mode: luminosity;
}
            
          
!
999px

Console