Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="tabs">
  <div class="tabs__bar-wrap">
    <div class="tabs__bar">
      <div class="tabs__controls md-ripple">View</div>
      <div class="tabs__controls md-ripple">General</div>
      <div class="tabs__controls md-ripple">Advanced</div>
    </div>
  </div>

  <div class="tabs__content">
    <div class="tabs__section">
      <div>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Laboriosam amet veniam sed saepe, voluptates debitis odio beatae excepturi impedit? Minus.
        <a href="https://google.com" target="_blank">Test link</a>
      </div>
    </div>
    <div class="tabs__section">
      <div>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo eos, iusto laboriosam voluptatem at reiciendis vel, facilis repellendus totam excepturi earum saepe rerum ullam! Placeat ducimus, sapiente impedit autem minus aperiam tempora? Magnam aliquam explicabo vitae! Odit minima quaerat ullam molestiae quae, nobis at. Molestiae consectetur libero dolore at officiis.
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit sint adipisci voluptas eaque, veritatis, exercitationem et nam mollitia dolorem sit corporis dicta blanditiis soluta voluptatibus minima aliquid provident assumenda numquam unde aut error velit? Error ducimus quae dignissimos explicabo atque quia quidem laboriosam, tempore, eius totam vero dolorum provident magni repudiandae. Distinctio laudantium eligendi nobis cumque asperiores, qui architecto non error, iusto rerum, officia pariatur ullam praesentium. Soluta officiis amet assumenda alias dolorem cum aliquid id, dicta quisquam doloribus vitae voluptatem, magni nihil corporis sunt? Necessitatibus officia ab veritatis ipsa officiis laudantium cumque a inventore velit? Illum corporis eius quos?
        <button>www</button>
        <button disabled="disabled">www</button>
      </div>
    </div>
    <div class="tabs__section">
      <div>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Minus in et amet nemo laudantium quo vitae quaerat accusantium quam. Nam dolorem consequuntur impedit corrupti provident sed iure. A dicta quaerat reiciendis voluptatum enim vel, cupiditate, ex nulla omnis doloribus labore delectus itaque qui? Eos accusamus totam dolorem unde reiciendis cupiditate suscipit, veritatis cum blanditiis. Tempore provident perspiciatis itaque sed ducimus totam similique facilis quia, harum nesciunt cumque reiciendis nihil delectus expedita hic exercitationem dicta eius cupiditate, suscipit possimus. Quisquam perferendis tempore suscipit, voluptate numquam voluptatem ducimus nam officiis aliquam aspernatur commodi, laborum architecto atque soluta, repellat asperiores delectus accusantium veniam.
        <a href="#0">Another link</a>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  padding: 30px;
}
              
            
!

JS

              
                new TabsSlider('.tabs');
              
            
!
999px

Console