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.

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

            
              <div class="grid">
	<div class="item1"><h1>Jello.</h1><h2>A little fluffy dog.</h2></div>
<div class="item2 pattern"></div>
<div class="item3"><p class="effect" data-effect="Hello squishy Jello you little fluffy fellow.">Hello squishy Jello you little fluffy fellow.</p></div>
<div class="item4 pattern">&nbsp;</div>
	<div class="item5"><p>Bouncy yellow Jello.</p></div>
	<div class="item6 pattern"><p>A very mellow fellow.</p></div>
	<div class="item7"><p>Eating my marshmallow.</p></div>
</div>
            
          
!

CSS

            
              :root {
	--font-size-1: 5vw;
	--font-size-2: 5.7vw;
	--font-size-3: 8vw;
	--gridCol-item1: 1 / span 3;
	--gridCol-item2: 4;
	--gridCol-item4: 1 / span 3;
	--gridCol-item5: 2 / span 2;
	--gridCol-item7: 2 / span 3;
	--effect: 1px;
	--effect2: -1px;
}

@media screen and (min-width: 500px) {
	:root {
		--font-size-1: 2.5vw;
		--font-size-2: 2.7vw;
		--font-size-3: 4vw;
		--gridCol-item1: 1;
		--gridCol-item2: 3 / span 2;
		--gridCol-item4: 1 / span 2;
		--gridCol-item5: 2;
		--gridCol-item7: 3 / span 2;
		--effect: 2px;
		--effect2: -2px;
	}
}

@font-face {
	font-family: "Source Sans Variable";
	src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/SourceSansVariable-Roman.ttf");
}

body {
	background-color: #d0dad0;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%239C92AC" fill-opacity="0.4" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
}

h1, h2, p {
	margin: 0;
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, 25%);
	font-family: "Source Sans Variable";
	padding: 3vh 0;
	color: #170d41;
}

.item1 {
	font-variation-settings: 'wght' 350;
	grid-column: var(--gridCol-item1);
	color: #c9106e;
	
	h1, h2 {
		font-size: var(--font-size-1);
		padding-left: 0.5vw;
	}
}

.item2 {
	background: #480355;
	grid-column: var(--gridCol-item2);
}
.item3 {
	font-size: 15vw;
	grid-column: 1 / span 4;
	grid-row: 2;
	font-variation-settings: 'wght' 600;
	line-height: 0.9;
}

.item4 {
	background: #9448BC;
	grid-column: var(--gridCol-item4);
}

.item5 {
	color: #c9106e;
	grid-column: var(--gridCol-item5);
	grid-row-start: 4;
	justify-self: flex-end;
	font-variation-settings: 'wght' 400;
	font-size: var(--font-size-2);
}

.item6 {
	grid-column: 1 / span 3;
	background: #63B4D1;
	text-align: right;
	font-variation-settings: 'wght' 500;
	font-size: var(--font-size-2);
}

.item7 {
	grid-column: var(--gridCol-item7);
	font-variation-settings: 'wght' 900;
	font-size: var(--font-size-3);
	text-transform: uppercase;
}

.pattern {
	background-image: url('data:image/svg+xml,%3Csvg width="100" height="20" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z" fill="%239C92AC" fill-opacity="0.4" fill-rule="evenodd"/%3E%3C/svg%3E');
	background-blend-mode: overlay;
}

.effect {
	position: relative;
	&::after, &::before {
		content: attr(data-effect);
		position: absolute;
		left: 0;	
		mix-blend-mode: multiply;
		top: 0;
	}
}

.effect::after{
	color: #c9106e;
	transform: translateY(var(--effect2));
}

.effect::before {
	color: #1798ba;
	transform: translateY(var(--effect));
}

            
          
!

JS

            
              
            
          
!
999px

Console