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


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.


                <div class="pull">

	<div class="pull__content">
    <h1>Hello there!</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum molestiae, laudantium dolorum ipsa debitis nobis quas error quisquam veritatis repellat ex voluptates ducimus natus. Beatae facilis illo obcaecati hic alias.</p>

	<div class="pull__trigger">hover me!</div>


<div class="container">

    <h1>Can you see the trigger above?</h1>
    <small>Hover the trigger and reveal the panel</small>




                // minimal requirements
.pull {
	$in-out-quint: cubic-bezier(.86, 0, .07, 1);
	$in-out-back:  cubic-bezier(.68, -.55, .265, 1.55);
	$fz : .5rem; // use rem important
	$paddingVert : .25rem; // use rem important
	$triggerHeight : $paddingVert*2 + $fz; // padding top & bottom + font-size should equal the Height of the Trigger
  display: block;
	transform: translateY(calc(-100% + #{$triggerHeight} + 3px));
	position: fixed;
	top: 0;
	width: 100%;
	background-color: transparent;
	z-index: 1;
	transition: transform .3s $in-out-back .3s; // delay on close

	&__content {
		background-color: #fff;
		color: #000;
		padding: 3em;
	&__trigger {
		font-size: $fz;
		padding: $paddingVert;
		text-align: center;
		cursor: pointer;
		line-height: 1em; // use em important
		text-transform: uppercase;
		color: color('text');
		max-width: 100px;
		background: #fff;
		margin: 0 auto;
    color: black;
	&:hover {
		transform: translateY(0);
		transition: transform .3s $in-out-quint .3s; // delay on open
// styling requirements

body {
  background-color: #28282C;

.container {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  color: lighten(#28282C,10%);
  text-shadow: 0px 1px 2px darken(#28282C,10%);