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

              
                <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>

              
            
!

CSS

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

JS

              
                
              
            
!
999px

Console