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.


Auto Save

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="accordion">
    <summary>Sesame snaps</summary>
  <div>Sweet roll donut bonbon cheesecake pudding ice cream oat cake chocolate apple pie. Marshmallow sweet roll muffin macaroon donut. Tootsie roll cupcake cotton candy jujubes apple pie apple pie jelly beans. Marshmallow jelly-o marzipan caramels pudding icing toffee lemon drops carrot cake.</div>
    <summary>Chocolate bar</summary>
  <div>Lollipop dessert sweet roll liquorice jelly-o marzipan. Lemon drops icing marshmallow soufflé soufflé. Gingerbread croissant gummi bears brownie chocolate bar pudding.

    <summary>Donut gummies</summary>
  <div>Halvah muffin toffee bear claw jujubes. Liquorice jelly marzipan toffee macaroon bonbon tootsie roll toffee soufflé. Jelly pie gummies muffin tart soufflé ice cream liquorice apple pie. Sugar plum bear claw chocolate bar croissant bear claw tiramisu topping.</div>



                details {
  margin: 5px;
  font-size: 18px;
details > * {
  padding: .75rem;
summary {
  border-radius: 5px;
  font-size: 20px;
  font-family: sans-serif;
  font-weight: bold;
  color: #fff;
  background: #0B486B;
  cursor: pointer;
  position: relative;
summary::marker {
  content: "";
summary::before {
  inset: .75rem;
  left: auto;
  aspect-ratio: 1;
   conic-gradient(from 90deg at 33% 33%, #0000 90deg, #fff 0) 
    100% 100%/60% 60%;
  clip-path: inset(1px);
details[open] summary::before {
  background: linear-gradient(#fff 0 0) 50%/100% 25% no-repeat;
details[open] summary {
  border-radius: 5px 5px 0 0;
details > div {
  background: #ddd;
  border-radius: 0 0 5px 5px;