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.


                <p>In the beginning was the Word, and the Word was with God, and the Word was God. He was in the beginning with God. All things came into being through him, and without him not one thing came into being. What has come into being in him was life, and the life was the light of all people. The light shines in the darkness, and the darkness did not overcome it.</p>


                @import url('');

body {
	background: black;
	color: white;
	font: 3vw/1.2 'Gelasio', serif;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 55vw;
	margin: 0 auto;
	min-height: 100vh;
	perspective: 200px;
	animation: perspective 3s cubic-bezier(.35,.06,.92,.03) infinite;
	@keyframes perspective {
		0% { perspective: 100px; transform: scale(.5); }
		100% { perspective: 10000px; transform: scale(1);	}

p {
	transform-style: preserve-3d;

span {
	display: inline-block;
	@for $i from 1 through 70 {
		&:nth-child(#{$i}) {
			transform: translateZ((random() * -1000px));


                var p = document.querySelector('p');
p.innerHTML = p.innerHTML.replace(/(^|<\/?[^>]+>|\s+)([^\s<]+)/g, '$1<span>$2</span>');