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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="live-auction">
<div class="container">
  <div class="item item1"></div>
  <div class="item item2">
    <svg viewBox="0 0 100 100" width=50 xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414">
  <g id="Jewelry_1_" fill="#fff" fill-rule="nonzero">
    <path d="M43.5 0H22.1l9 21.3L43.5 0zM77.3 0H55.9l12.4 21.3 9-21.3zM62.8 24.5L49.7 2.2l-13 22.3h26.1zM100 24.5L85.1 4.4l-9.7 20.1H100zM16.5 4.4L1.1 24.5h25.4l-10-20.1zM56.4 96.8L99.5 32H72.2L56.4 96.8zM0 32l43 64.8L27.2 32H0zM33.3 32l16.4 68 16.5-68H33.3z"/>
  </g>
</svg>
  </div>
  <div class="item item3"></div>
  <div class="item item4"></div>
  <div class="item item5"></div>
  <div class="bidI"></div>
  <div class="item item6"></div>
  <div class="item item7"></div>
  <div class="item item8"></div>
  <div class="item item9"></div>
  <div class="item item10"></div>
  <div class="item item11"></div>
    <div class="item item12"></div>
    <div class="item item13"></div>
    <div class="item item14"></div>
      <div class="item item15"></div>
        <div class="item item16">
          <img class="sold_img" src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/780593/SOLD.svg' alt=''>
  </div>
          <div class="item item17"></div>
          <div class="item item18"></div>
</div>
</div>
              
            
!

CSS

              
                .live-auction {
  padding-bottom: 10vh;
  position: relative;
}
.banner {
  width: 505px;
  height: 15vh;
  background: white;
  margin-bottom: 10px;
  transform: translateY(-110px);
}
.banner::before {
  content:"";
  position:absolute;
  width: 0;
height: 0;
border-style: solid;
border-width: 105px 110px 0 0;
border-color: #000000 transparent transparent transparent;

}

.container {
  position:relative;
  display: grid;
  grid-template-areas:
    "item1 item2 item3 item4 item5"
    "item6 bidI bidI bidI item7"
    "item8 bidI bidI bidI item9"
    "item8 bidI bidI bidI item9"
    "item10 bidI bidI bidI item11"
    "item12 item13 item14 item15 item16";
  grid-gap: 10px;
}

/* OTHER STYLES */

body {
  background-color: #4990ce;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item {
  background-color: #336896;
  color: #fff;
  width: 85px;
  height: 85px;
  border-width: 4px;
  border-style: solid;
  border-color: #336896;
  display: flex;
  justify-content: center;
}

.bidI {
  background: #e9e4e4;
  width: 272px;
  height: 100%;
  grid-area: bidI;
  justify-self: center;
}


              
            
!

JS

              
                function staggerColor() {
  var tl = new TimelineMax();
  tl.staggerTo(
    ".item",
    0.3,
    {
      cycle: {
        // an array of values
        backgroundColor: ["#60bbef"]
      },
      yoyo: true,
      repeat: 1
    },
    -0.2
  );
}
var stagger = new TimelineMax({ repeat: -1 });
stagger.add(staggerColor());

              
            
!
999px

Console