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.

  <h1><a href="https://www.chromestatus.com/feature/4704436815396864" target="_blank"><code>intrinsicsize</code></a> fights jank</h1>
  <p>Here are two videos, showing what loading this page looks like:</p>
    <li><a href="https://eric-cloudinary-res.cloudinary.com/video/upload/v1546972148/jank_2.mp4" target="_blank">in browsers, now, by default</a>
      <ul><li>DevTools says: <a href="https://eric-cloudinary-res.cloudinary.com/image/upload/v1546974288/12_layout_events.png"  target="_blank">12 layout events spread over 5 seconds</a> = janky</li></ul>
    <li><a href="https://eric-cloudinary-res.cloudinary.com/video/upload/v1546972153/no_jank_2.mp4" target="_blank">in Chrome 71+ with Experimental Web Platform Features set to “Enabled”</a>
      <ul><li>DevTools says: <a href="https://eric-cloudinary-res.cloudinary.com/image/upload/v1546974288/1_layout_event.png" target="_blank">only one, initial, layout</a> = no jank!</li></ul>

    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0016.jpg" intrinsicsize="320x213" />
    <figcaption>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0005.jpg" intrinsicsize="320x480" />
    <figcaption>totam rem aperiam, </figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/h_1.0,ar_1,g_auto,c_crop/w_320,q_auto/wocInTech/0006.jpg" intrinsicsize="320x320" />
    <figcaption>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, </figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/h_1.0,ar_1,g_auto,c_crop/w_320,q_auto/wocInTech/0027.jpg" intrinsicsize="320x320" />
    <figcaption>olores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, </figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0020.jpg" intrinsicsize="320x213" />
    <figcaption>adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0009.jpg" intrinsicsize="320x480" />
    <figcaption>sed quia consequuntur magni dolores</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/h_1.0,ar_1,c_crop,g_auto/w_320,q_auto/wocInTech/0013.jpg" intrinsicsize="320x320" />
    <figcaption>eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0011.jpg" intrinsicsize="320x480" />
    <figcaption>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? </figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0022.jpg" intrinsicsize="320x213" />
    <figcaption>Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0033.jpg" intrinsicsize="320x213" />
    <figcaption>vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</figcaption>
    <img src="https://eric-cloudinary-res.cloudinary.com/image/upload/w_320,q_auto/wocInTech/0034.jpg" intrinsicsize="320x480" />
    <figcaption>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis</figcaption>

  Images copyright <a href="wocintechchat.com" target="_blank">#WOCinTechChat</a>, used under a Create Commons (Attribution) license.

              :root {
  font-family: system-ui, sans-serif;
  background: #eee;

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-flow: dense;

figure {
  padding: 1em;
  margin: 1em;
  background: white;
  border-radius: 0.3675em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);

img {
  background: gray;
  width: 100%;

a {
  color: steelblue;

code {
  font-family: Menlo, Consolas, monospace;

footer {
  font-size: 0.8675em;
  color: gray;
  text-align: center;
  margin: 2em;

🕑 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 ..................