123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

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.

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.

            
              <a target="_blank" href="https://bennettfeely.com/gradients">
<section style="background:
	repeating-linear-gradient(
		50deg,
		#F7A37B,
		#F7A37B 1em,
		#FFDEA8 1em,
		#FFDEA8 2em,
		#D0E4B0 2em,
		#D0E4B0 3em,
		#7CC5D0 3em,
		#7CC5D0 4em,
		#00A2E1 4em,
		#00A2E1 5em,
		#0085C8 5em,
		#0085C8 6em
	),
	repeating-linear-gradient(
		-50deg,
		#F7A37B,
		#F7A37B 1em,
		#FFDEA8 1em,
		#FFDEA8 2em,
		#D0E4B0 2em,
		#D0E4B0 3em,
		#7CC5D0 3em,
		#7CC5D0 4em,
		#00A2E1 4em,
		#00A2E1 5em,
		#0085C8 5em,
		#0085C8 6em
	);
	
background-blend-mode: multiply;"></section>
<section style="background:
	linear-gradient(
		cyan,
		transparent
	),
	linear-gradient(
		-45deg,
		magenta,
		transparent
	),
	linear-gradient(
		45deg,
		yellow,
		transparent
	);
background-blend-mode: multiply;"></section>
<section style="background:
	repeating-linear-gradient(
		floralwhite,
		floralwhite 10px,
		lightcoral 10px,
		lightcoral 15px,
		floralwhite 15px,
		floralwhite 20px,
		lightcoral 15px,
		lightcoral 40px,
		floralwhite 40px,
		floralwhite 45px,
		lightcoral 45px,
		lightcoral 50px,
		floralwhite 50px,
		floralwhite 80px
	),
	repeating-linear-gradient(
		90deg,
		floralwhite,
		floralwhite 10px,
		lightcoral 10px,
		lightcoral 15px,
		floralwhite 15px,
		floralwhite 20px,
		lightcoral 15px,
		lightcoral 40px,
		floralwhite 40px,
		floralwhite 45px,
		lightcoral 45px,
		lightcoral 50px,
		floralwhite 50px,
		floralwhite 80px
	);;
	

background-blend-mode: multiply;"></section>
<section style="background:
	radial-gradient(
		transparent 0,
		transparent 2em,
		lightblue 2em,
		lightblue 2.5em,
		transparent 2.5em,
		transparent 100%
	),
	radial-gradient(
		transparent 0,
		transparent 2em,
		aquamarine 2em,
		aquamarine 2.5em,
		transparent 2.5em,
		transparent 100%
	),
	radial-gradient(
		transparent 0,
		transparent 2em,
		khaki 2em,
		khaki 2.5em,
		transparent 2.5em,
		transparent 100%
	),
	radial-gradient(
		transparent 0,
		transparent 2em,
		pink 2em,
		pink 2.5em,
		transparent 2.5em,
		transparent 100%
	), linen;

background-blend-mode: multiply;
background-size: 5em 5em;
background-position:
	0 2.5em,
	2.5em 0,
	2.5em 2.5em,
	0 0;
"></section>
<section><div>New CSS gradient possibilities with <code>background-blend-mode</code><small> https://bennettfeely.com/gradients</small></div></section>
<section style="background:
	radial-gradient(
		yellow,
		yellow 50%,
		transparent 50%,
		transparent 100%
	),
	radial-gradient(
		cyan,
		cyan 50%,
		transparent 50%,
		transparent 100%
	),
	radial-gradient(
		magenta,
		magenta 40%,
		transparent 40%,
		transparent 100%
	), floralwhite;

background-size:
	8em 8em,
	6em 6em,
	2em 2em;

background-blend-mode: multiply;
background-position:
	0 0,
	-33% -33%,
	-200% -200%;"></section>
<section style="background:
	repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 25%,
		tomato 0,
		tomato 50%
	),
	repeating-linear-gradient(
		45deg,
		transparent,
		transparent 25%,
		dodgerblue 0,
		dodgerblue 50%
	), wheat;

background-size: 10em 10em;
background-blend-mode: multiply;"></section>
<section style="background:
	linear-gradient(
		limegreen,
		transparent
	),
	linear-gradient(
		90deg,
		skyblue,
		transparent
	),
	linear-gradient(
		-90deg,
		coral,
		transparent
	);
	
background-blend-mode: screen;"></section>
<section style="background:
	radial-gradient(
			at bottom right,
			dodgerblue 0,
			dodgerblue 1em,
			lightskyblue 1em,
			lightskyblue 2em,
			deepskyblue 2em,
			deepskyblue 3em,
			gainsboro 3em,
			gainsboro 4em,
			lightsteelblue 4em,
			lightsteelblue 5em,
			deepskyblue 5em,
			deepskyblue 6em,
			lightskyblue 6em,
			lightskyblue 7em,
			transparent 7em,
			transparent 8em
		),
		radial-gradient(
			at top left,
			transparent 0,
			transparent 1em,
			lightskyblue 1em,
			lightskyblue 2em,
			deepskyblue 2em,
			deepskyblue 3em,
			lightsteelblue 3em,
			lightsteelblue 4em,
			gainsboro 4em,
			gainsboro 5em,
			deepskyblue 5em,
			deepskyblue 6em,
			skyblue 6em,
			skyblue 7em,
			dodgerblue 7em,
			dodgerblue 8em,
			transparent 8em,
			transparent 20em
		),
		radial-gradient(
			circle at center bottom,
			coral, darkslateblue
		);
	
	background-blend-mode: overlay;
	background-size:
		8em 8em, 8em 8em, cover;"></section>
</a>

            
          
!
            
              * { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

html, body, a {
  background: #222;
  color: lightgray;
  transition: .3s;
}

a:hover section {
  color: white;
  transform: scale3d(.9,.9,.9);
  
  &:nth-child(5) {
    transform: scale3d(1.1,1.1,1.1);
    
  }
}

section {
  display: flex;
  transition: transform .3s;
  justify-content: center;
  text-align: center;
  padding: 1em;
  line-height: 1.5;
  align-items: center;
  float: left;
  width: 33.333%;
  height: 33.333%;
  box-shadow: inset 0 0 0 .125rem #222;
}

small {
  display: block;
  padding-top: 1em;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console