css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <button type="button" class="show">Show Slideout</button>
<section>
  <p>They show extreme intelligence, even problem-solving intelligence. Uh uh uh!...You didn't say the magic word! Boy, do I hate being right all the time. T-Rex doesn't want to be fed. I can't get Jurassic Park back online without Dennis Nedry. Well, at least you're out of the tree. Boy, do I hate being right all the time.</p>
  <p>Are these characters...auto...erotica? Dr. Wu inserted a gene that makes a single faulty enzyme in protein metabolism. I bring scientists, you bring a rockstar. Boy, do I hate being right all the time. Uh uh uh!...You didn't say the magic word! He's gonna eat the goat? It's...it's a dinosaur...</p>
  <p>Hold onto your butts. Well, at least you're out of the tree. Dinosaurs eat man; woman inherits the earth. Amphibian DNA. Dinosaurs eat man; woman inherits the earth. Dr. Wu inserted a gene that makes a single faulty enzyme in protein metabolism. Boy, do I hate being right all the time.</p>
</section>
<footer>
  Content by <a href="https://codepen.io/AllThingsSmitty/pen/bpmZpK">Jurassic Ipsum</a>
</footer>

<div class="slideout">
  <button type="button" class="hide">Close</button>
  <p>Clever girl. That is one big pile of shit. I thought you were one of your big brothers. Don't you see the danger, John, inherent in what you're doing here? They show extreme intelligence, even problem-solving intelligence.</p>
  <p>Dinosaurs eat man; woman inherits the earth. T-Rex doesn't want to be fed. Boy, do I hate being right all the time. White rabbit object: whatever it did, it did it all.</p>
</div>
            
          
!
            
              body {
  font-family: -apple-system, 
    BlinkMacSystemFont, 
    "Segoe UI", 
    Roboto, 
    Oxygen-Sans, 
    Ubuntu, 
    Cantarell, 
    "Helvetica Neue", 
    sans-serif;
  line-height: 1.5;
  margin: 1em;
  overflow: hidden;
}

button {
  background-color: #fff;
  border: 1px solid #0363c8;
  border-radius: 3px;
  color: #0363c8;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  padding: .5em 1em;
  text-transform: uppercase; 
}

button:hover {
  background-image: linear-gradient(to right, #0363c8, #0391e2);
  color: #fff;
}

.slideout {
  background: linear-gradient(to bottom, #003351 0%, #1d0a3a 100%); 
  color: #fff;
  height: 100%;
  min-height: 100%;
  padding: 1em;
  position: absolute;
  right: -360px;
  top: 0;
  transition-duration: 0.2s;
  width: 325px;
}

.slideout.on {
  right: 0;
}

footer {
  color: #333;
  font-size: .75rem;
  text-transform: uppercase;
  padding: 1em 0;
}
            
          
!
            
              $('.show').click(function() {
  $('.slideout').addClass('on');
});

$('.hide').click(function() {
  $('.slideout').removeClass('on');
});
            
          
!
999px
🕑 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.
Loading ..................

Console