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

              
                <section class="grid-tile-wrapper">
  <div class="grid-tile-item big">
    <h3>Save 20% on all Tiltaing full cages & handles</h3>
    <img src="https://i2.wp.com/tilta.com/wp-content/uploads/2018/11/Tiltaing-Camera-Cage-for-BMPCC-4K6K-Advanced-Kit-TA-T01-FCC-A_front_Legacy-2.jpg?zoom=2&resize=560%2C560&ssl=1"></div>
  <div class="grid-tile-item wide">
    <h3>15% off everything else Tiltaing</h3> <img src="https://i2.wp.com/tilta.com/wp-content/uploads/2018/11/Basic-Package-B-Tactical-TA-T01-B.jpg?w=600&h=600&ssl=1"></div>
  <div class="grid-tile-item wide">
    <h3>Up to 50% off the Gravity G2X Gimbal System</h3><img src="https://i0.wp.com/tilta.com/wp-content/uploads/2019/08/nanobundle-scaled.jpg?zoom=2&h=600&w=600&ssl=1"> </div>
  <div class="grid-tile-item wide"><img src="https://i2.wp.com/tilta.com/wp-content/uploads/2019/09/Partial-I_Legacy-2.jpg?w=600&h=600&ssl=1">
    <h5>Save 15% off Nucleus-M</h5>
  </div>
  <div class="grid-tile-item wide"><img src="https://i0.wp.com/tilta.com/wp-content/uploads/2018/09/Nano-Kit-Legacy-2.jpg?w=600&h=600&ssl=1">
    <h5>Save 15% off Nucleus-Nano</h5>
  </div>
  <div class="grid-tile-item big"><img src="https://tilta.com/wp-content/uploads/2019/11/hammer.png">
    <h3>Tilta Black Friday Giveaway</h3>
  </div>
  <div class="grid-tile-item big">
    <h3>First Prize: BMPCC 6K Camera</h3><img src="https://tilta.com/wp-content/uploads/2019/11/bmpcc.png"></div>
  <div class="grid-tile-item wide">
    <h5>2nd Prize: SWIT 7" HDR Monitor</h5><img src="https://tilta.com/wp-content/uploads/2019/11/swit.png"></div>
  <div class="grid-tile-item wide"><img src="https://tilta.com/wp-content/uploads/2019/11/vaxis.png">
    <h5>3rd Prize: Vaxis Atom 500 Wireless Video System</h5>
  </div>

</section>
              
            
!

CSS

              
                body {
  margin: 24px;
}
.grid-tile-wrapper {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 350px;
  grid-auto-flow: dense;
}
.grid-tile-item.big {
  grid-column: span 2;
  grid-row: span 2;
}
.grid-tile-item.tall {
  grid-row: span 2;
}
.grid-tile-item.wide {
  grid-column: span 2;
}
.grid-tile-item img {
  width: auto;
  padding: 12px;
  pointer-events: none;
  min-height: 80px;
  flex: initial;
  object-fit: contain;
}
.grid-tile-item h3 {
  flex: 1;
  font-size: 2rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  letter-spacing: -1px;
  margin: 24px;
}
.grid-tile-item h5 {
  flex: 1;
  font-weight: 500;
  font-size: 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  letter-spacing: -0.4px;
  margin: 20px;
}
.grid-tile-item {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 8px;
}
html.sr .grid-tile-item {
    visibility: hidden;
}
              
            
!

JS

              
                ScrollReveal().reveal(".grid-tile-item", {
  interval: 100,
  reset: true,
  delay: 200,
  useDelay: 'once',
  distance: "30px",
  origin: "bottom",
});

              
            
!
999px

Console