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

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

              
                <div class="poem">
	<figure>
		<p>Turn back the clock</p>
		<figcaption>
			Sometimes we have to<br> turn back the clock<br> to face our fears.<br> Search back through our memories<br> to find out how and when they began.<br> Look deep within our soul<br> for the answers that we seek.<br> Locate the source of our torment<br>			to eradicate it complete.<br> Our fears began somewhere<br> and the only way to find out where and when<br> is to turn back the clock.
			<br>
			<div class="author">― David Harris</div>
		</figcaption>
	</figure>

</div>

<h2>Hover over this beautiful image</h2>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Faustina|Special+Elite");
body {
	font-family: verdana;
}
.poem {
	margin: 20px 35%;
}
figure {
	position: relative;
	background: url(https://cdnw.nickpic.host/v1TG0s.png);
	width: 320px;
	height: 400px;
	box-sizing: border-box;
	display: inline-block;
	margin: 0 auto;
	background-color: rgba(230, 230, 230, 0.7);
	color: #666;
	transition: all 0.35s ease;
	overflow: hidden;
	backface-visibility: hidden;
	box-shadow: 3px 2px 24px 0px rgba(190, 158, 167, 1);
}
figure p {
	width: 320px;
	background-color: rgba(255, 255, 255, 0.9);

	border-bottom: 5px solid rgba(190, 158, 167, 0.4);
	font-family: "Special Elite", cursive;
	padding: 20px;
	bottom: 5px;
	position: absolute;
	transition: all 0.45s ease;
}

/***/

figure figcaption {
	transform: translateX(-120%);
	background-color: rgba(255, 255, 255, 0.9);
	width: 250px;
	height: 330px;
	padding: 20px;
	position: absolute;
	top: 0px;
	bottom: 15px;
	left: 0px;
	right: 15px;
	font-family: "Faustina", serif;
	font-size: 15px;
	border: 15px solid rgba(190, 158, 167, 0.4);
	transition: all 1.5s ease;
}

figure:hover figcaption {
	transition: all 1s ease;
	transform: translate(0, 0);
}
figure:hover p {
	transform: translateX(-120%);
}

figure .author {
	text-align: right;
	margin-top: 25px;
}

h2 {
	text-align: center;
	background: rgba(190, 158, 167, 0.5);
	border-bottom: 5px solid rgba(190, 158, 167, 0.9);
	color: #333;
	font-size: 13px;
	font-family: "Special Elite", cursive;
	padding: 20px;
	width: 250px;
	margin: auto;
	margin-top: 40px;
	transition: all ease 1s;
}
h2:hover {
	background: rgba(190, 158, 167, 0.7);
	border-bottom: 5px solid rgba(190, 158, 167, 0.8);
}

              
            
!

JS

              
                
              
            
!
999px

Console