Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div id="one" class="slideswitch"></div>
<div id="two" class="slideswitch"></div>
<div id="three" class="slideswitch"></div>
<div id="four" class="slideswitch"></div>
<div id="five" class="slideswitch"></div>

<div id="one" class="slide">

  <div class="navigation"><a class="prev disabled"></a><a href="#two" class="next"></a></div>

  <div class="content">
    <h1>Create a “PowerPoint” Like Presentation Using Pure HTML and CSS3</h1>
    <p>Handle navigation, transitions, design and layout all with CSS3</p>
  </div>

</div>

<div id="two" class="slide spin_180">

  <div class="navigation"><a href="#one" class="prev"></a><a href="#three" class="next"></a></div>

  <div class="content flip">
    <h1>That was a "Flip" Transition</h1>
    <p>And we have a full screen background image too.</p>
    <p>There's a GIF coming up next with a "Slide" transition.</p>
  </div>

</div>

<div id="three" class="slide">

  <div class="navigation"><a href="#two" class="prev"></a><a href="#four" class="next"></a></div>

  <div class="content slide_from_left"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/210284/bert_51.gif" class="stretch"></div>

</div>

<div id="four" class="slide">

  <div class="navigation"><a href="#three" class="prev"></a><a href="#five" class="next"></a></div>

  <div class="content grow">
    <h1>This Time We Used a<br>"Grow" Transition</h1>
    <p>And we also used psuedo elements <br>to place a circle behind this text</p>
  </div>

</div>

<div id="five" class="slide">

  <div class="navigation"><a href="#four" class="prev"></a><a class="next disabled"></a></div>

  <div class="content">
    <h1>And CSS3 Animation Can Run Inline</h1>

    <div class="logo">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" version="1.1" preserveAspectRatio="xMidYMid meet">
        <g id="logo_outer" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
          <g id="logo_inner">
            <path id="back_triangles" d="M374.18 137.77L285.87 86.65 344.76 86.8 374.18 137.77ZM409.11 301.02L409.23 198.98 438.54 250.05 409.11 301.02ZM285.87 412.96L374.3 362.04 344.72 412.96 285.87 412.96ZM155.84 412.91L126.41 361.94 214.72 413.06 155.84 412.91ZM61.13 249.95L90.55 198.98 90.43 301.02 61.13 249.95ZM155.87 86.75L214.72 86.75 126.29 137.67 155.87 86.75Z" fill="#2E2E2E" sketch:type="MSShapeGroup"></path>
            <path id="front_triangles" d="M375.41 236.57L403.03 150.11 250 61.48C250 61.48 282.82 87.52 316.49 134.53 350.16 181.53 375.41 236.57 375.41 236.57ZM323.96 352.62L412.65 333.31 412.89 156.47C412.89 156.47 406.75 197.92 382.87 250.58 359 303.24 323.96 352.62 323.96 352.62ZM199.25 364.91L260.31 432.06 413.58 343.86C413.58 343.86 374.62 359.26 317.08 364.91 259.53 370.57 199.25 364.91 199.25 364.91ZM124.59 263.43L96.97 349.89 250 438.52C250 438.52 217.18 412.48 183.51 365.47 149.84 318.47 124.59 263.43 124.59 263.43ZM175.84 148.4L87.15 167.71 86.91 344.55C86.91 344.55 93.05 303.1 116.92 250.44 140.8 197.78 175.84 148.4 175.84 148.4ZM301.23 134.65L240.16 67.5 86.89 155.71C86.89 155.71 125.86 140.3 183.4 134.65 240.94 129 301.23 134.65 301.23 134.65Z" fill="#F3B40C" sketch:type="MSShapeGroup"></path>
            <path id="letter_a" d="M265.75 263.18L245.32 263.18C237.44 263.18 232.52 267.61 232.52 273.77 232.52 279.67 236.95 284.84 245.82 284.84 253.69 284.84 257.38 284.11 261.81 279.92 264.77 277.21 265.75 273.02 265.75 266.62L265.75 263.18 265.75 263.18ZM266.74 316.36L266.74 305.53C258.61 313.66 251.23 317.59 237.2 317.59 223.91 317.59 212.82 313.17 205.44 305.78 197.82 298.14 193.87 287.06 193.87 274.75 193.87 254.8 207.41 236.33 238.92 236.33L265.75 236.33 265.75 232.88C265.75 220.82 259.85 216.39 245.82 216.39 235.48 216.39 231.05 218.85 224.65 225.25L199.54 200.13C213.07 186.59 225.38 182.41 247.78 182.41 285.69 182.41 306.13 198.16 306.13 230.42L306.13 316.36 266.74 316.36 266.74 316.36Z" sketch:type="MSShapeGroup" fill="#2E2E2E"></path>
          </g>
        </g>
      </svg>
    </div>
    
  </div>

</div>

<!-- gif from https://design.tutsplus.com/tutorials/create-a-daft-punk-gif-animation-using-illustrator-and-photoshop--vector-13506 -->
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
body {
  font-family: "Roboto";
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
h1 {
  font-weight: 400;
  line-height: 1.618em;
}
p {
  font-weight: 300;
  line-height: 1.618em;
}
a {
  text-decoration: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console