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

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.

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

HTML

              
                <h1>Stripe Backgroutd</h1>

<div class="content">
	
	<div class="sample stripe-45deg">
		45deg
	</div>

	<div class="sample stripe-45deg-reverse">
		-45deg
	</div>

	<div class="sample vertical">
		Vertical
	</div>


	<div class="sample horizontal">
		Horizontal
	</div>

</div>

<p class="text-mask">
	text mask
</p>
<p class="text-mask-hover">
	hover here
</p>
              
            
!

CSS

              
                @import url('//fonts.googleapis.com/css?family=Roboto');
html, * {
	font-family: 'Roboto';
	box-sizing: border-box;
}

html, body {
	height: 100%;
	font-size: 5.5vw;
}

body {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	
	min-height: 15rem;
	
	width: 100%;
	height: 100%;
}

h1 {
	margin: 1rem;
	font-size: 2rem;
	font-weight: 100;
}

.content {
	display: flex;
}

.sample {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	
	width: 6em;
	height: 6em;
	margin: .5em;
	
	font-size: .5rem;
	font-weight: 700;
	text-align: center;
	text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
	
	border-radius: 99em;
	
	transition: 200ms;
	
	&:hover {	
		background-size: 8px 8px;
		background-color: rgba(#000, .02);
	}
}

.stripe-45deg {
	background: repeating-linear-gradient(-135deg, transparent, transparent 25%, #fff 25%, #fff 50%, transparent 50%, transparent 75%, #fff 75%, #fff 100%);
	background-size: 4px 4px;
	background-color: rgba(#000, .5);
}
.stripe-45deg-reverse {
	background: repeating-linear-gradient(-45deg, transparent, transparent 25%, #fff 25%, #fff 50%, transparent 50%, transparent 75%, #fff 75%, #fff 100%);
	background-size: 4px 4px;
	background-color: rgba(#000, .5);
}
.vertical {
	background: repeating-linear-gradient(90deg, transparent, transparent 25%, #fff 25%, #fff 50%, transparent 50%, transparent 75%, #fff 75%, #fff 100%);
	background-size: 4px 4px;
	background-color: rgba(#000, .5);
}
.horizontal {
	background: repeating-linear-gradient(0deg, transparent, transparent 25%, #fff 25%, #fff 50%, transparent 50%, transparent 75%, #fff 75%, #fff 100%);
	background-size: 4px 4px;
	background-color: rgba(#000, .5);
}

.text-mask {
	margin: 1rem 0 0;
	font-size: 1.5rem;
	font-weight: bold;
	text-transform: uppercase;
	
	background: repeating-linear-gradient(-45deg, transparent, transparent 10%, #fff 10%, #fff 50%, transparent 50%, transparent 60%, #fff 60%, #fff 100%);
	background-size: 5px 5px;
	background-color: rgba(#000, .5);
	
	-webkit-background-clip: text;
	color: transparent;
}

.text-mask-hover {
	margin: 1rem 0 0;
	font-size: 1.5rem;
	font-weight: bold;
	text-transform: uppercase;
	
	-webkit-background-clip: text;

	transition: 200ms;
	transition-property: background, color;

	&:hover {
		background: repeating-linear-gradient(45deg, transparent, transparent 10%, #fff 10%, #fff 50%, transparent 50%, transparent 60%, #fff 60%, #fff 100%);
		background-size: 5px 5px;
		background-color: rgba(#000, .5);

		-webkit-background-clip: text;
		color: transparent;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console