cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              
<div class="wrap-cards">
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/400/300">
      <svg viewBox="0 0 100 100" preserveAspectRatio="none">
        <polygon points="0,100 100,100 100,0"></polygon>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/401/300"/>
      <svg viewBox="0 0 100 100" preserveAspectRatio="none">
        <polygon points="0,0 30,101 65,21 90,101 101,0 101,101 0,101"></polygon>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/402/300"/>
      <svg viewBox="0 0 100 100" preserveAspectRatio="none">
        <polygon points="0,0 15,100 33,21 45,100 50,75 55,100 72,20 85,100 95,50 100,80 100,100 0,100"></polygon>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/403/300"/>
      <svg viewBox="-1.5 529.754 603 71.746" preserveAspectRatio="none">
        <path d=" M 0 560 Q 66.018 533.115 153.816 571.235 C 241.613 609.355 293.526 571.416 310 560 C 346.774 534.516 402.903 510.645 450 560 Q 497.097 609.355 600 560 L 600 600 L 0 600 L 0 560 Z "></path>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/404/300"/>
      <svg viewBox="-2.93 488.5 604.753 113.677" preserveAspectRatio="none">
        <path d=" M 599.677 599.677 L -0.323 600.677 Q -2.12 578.16 -1 566 C 14.002 403.153 201.273 584.248 310 570 Q 415.249 556.208 600.323 490 L 599.677 599.677 Z "></path>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
  <div class="card">
    <div class="wrap-image"><img src="https://picsum.photos/405/300"/>
      <svg viewBox="-2.93 488.5 604.753 113.677" preserveAspectRatio="none">
        <path d=" M 0 560 Q 118.192 471.782 310 560 Q 495.161 645.161 600 520 L 600 600 L 0 600 L 0 560 Z "></path>
      </svg>
    </div>
    <div class="contents">
      <h3>Lorem Ipsum Dolor sit amet</h3>
      <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. </div>
    </div>
  </div>
</div>
            
          
!
            
              
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  padding: 3rem 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.wrap-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  width: 32%;
  max-width: 100%;
  margin: 0 0 4rem;
  background-color: #ddd;
}
.card .wrap-image {
  position: relative;
}
.card .wrap-image img {
  width: 100%;
  height: auto;
}
.card .wrap-image svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
}
.card .wrap-image svg polygon, .card .wrap-image svg path {
  fill: #ddd;
  stroke: #ddd;
}
.card:nth-child(4) .wrap-image svg path {
  stroke-width: 3px;
}
.card:nth-child(5) .wrap-image svg path {
  stroke-width: 4px;
}
.card:nth-child(6) .wrap-image svg path {
  stroke-width: 6px;
}
.card .contents {
  padding: 1rem;
}
.card .contents h3 {
  margin: 0 0 .5rem;
  font-size: 1.125em;
  color: #888;
}
.card .contents .text {
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  font-size: .9em;
}

@media all and (max-width: 768px) {
  .card {
    width: 49%;
    margin-bottom: 3rem;
  }
}
@media all and (max-width: 480px) {
  .card {
    width: 100%;
    margin-bottom: 3rem;
  }
}

            
          
!
999px
🕑 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 ..................

Console