Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              - 5.times do
	%details{onclick: "closeAll(this.parentNode);"}
		%summary Look under me
		%h1 Hello, you! 
              @import url('https://fonts.googleapis.com/css?family=Lato:400,900|Open+Sans:400,800')

	min-height: 100vh
	padding: 10vh 0
	box-sizing: border-box
	background: #440099
	display: flex
	justify-content: flex-start
	flex-direction: column
	counter-reset: section
	font-family: 'Open Sans', sans-serif
	font-weight: 800
	overflow-x: hidden
	max-width: 800px
	width: 100%
	padding: 0 30px
	margin: 0 auto
	box-sizing: border-box
	position: relative
	font-size: 56px
	outline: 0
	overflow: hidden
	cursor: crosshair
	transition: all .1s ease-out
	clip-path: polygon(25px 0%, 100% 0%, calc(100% - 25px) 100%, 0% 100%)
	background: #FEDD00
	padding: 20px 15px 18px 35px
	font-size: 2em
	font-family: "Lato", sans-serif
	font-weight: bold
	color: #333
	text-transform: uppercase
	margin: 0 0 15px
	list-style-type: none
		display: none
		display: none
		text-indent: 30px
			text-indent: -10px
		counter-increment: section
		content: counter(section)
		position: absolute
		color: rgba(#000, .5)
		left: 2%
		top: -30px
		font-size: 112px
		font-family: 'Open Sans', sans-serif
		font-weight: 800
		transition: all .1s ease-out
		mix-blend-mode: overlay
		content: '+'
		position: absolute
		font-size: 1.5em
		right: 35px
		top: 50%
		color: #000
		line-height: 0
		transform: translatey(-50%)
		mix-blend-mode: overlay

		text-indent: 30px
			text-indent: -10px
			content: "–"

details[open] summary ~ *
	animation: animationRotate .4s ease-out forwards
	color: white

@keyframes animationRotate
		opacity: 0
		opacity: 1
		transform: translatex(50%)
              const closeAll = (openDetails) => {
  let list = document.querySelectorAll("details")
	for (var item of list)
    if(item != openDetails)
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.