Pen Settings



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


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


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.


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.

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.


                <div>I have a blurred border</div>


                $url: url(;
$b: 1.5em; // border-width
$blur: blur(9px);
$rect: inset(0);

body {
	display: grid;
	place-content: center;
	margin: 0;
	min-height: 100vh

div {
	display: grid;
	place-content: center;
	position: relative;
	border: solid $b rgba(#000, .03);
	padding: 0 1em;
	height: 50vmin;
	max-width: 13em; max-height: 7em;
	box-shadow: 2px 2px 5px rgba(#000, .2), 
							2px 2px 17px rgba(#000, .35), 
							2px 2px 25px rgba(#000, .5);
	background: $url 50%/ cover 
								border-box /* background-origin */
								padding-box /* background-clip */;
	color: #fff;
	font: 600 3em/ 1.25 segoe script, comic sans ms, cursive;
	text-align: center;
	text-shadow: 1px 1px #000;
	&:before {
		position: absolute;
		z-index: -1; /* put it *behind* parent */
		/* go outside padding-box by 
		 * a border-width ($b) in every direction */
		top: -$b; right: -$b; bottom: -$b; left: -$b;
		border: inherit;
		border-color: transparent;
		background: inherit;
		background-clip: border-box;
		/* -webkit-prefixed version 
		 * still needed for 
		 * some mobile browsers πŸ’”πŸ˜­ */
		-webkit-filter: $blur;
						filter: $blur;
		/* -webkit-prefixed version 
		 * still needed for 
		 * some mobile browsers πŸ’”πŸ˜­ */
		-webkit-clip-path: $rect;
						clip-path: $rect;
		content: ''