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

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="background-image"></div>
<nav class="navbar navbar-dark bg-dark">
  <a class="navbar-brand" href="#">Demo of animated cards using Hover.CSS and CSS Grid</a>
</nav>
<div class="card-layout background-color">
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Payable</h5>
      <ul class="procs">
        <li>ABC</li>
        <li>DEF</li>
        <li>GEH</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check" class="svg-inline--fa fa-money-check fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Receivable</h5>
      <ul class="procs">
        <li>Sales/Invoices</li>
        <li>Payments</li>
        <li>Retainage</li>
        <li>Inquiries</li>
        <li>Reports</li>
        <li>Sales Representatives</li>
        <li>Notes/Letters/Labels</li>
        <li>Month and Year End</li>
        <li>Purge Customer History</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check-alt" class="svg-inline--fa fa-money-check-alt fa-w-20" role="img" width="110px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Weekly Payroll</h5>
      <span class="procs">ABC, DEF, GEH</span>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-bill-alt" class="svg-inline--fa fa-money-bill-alt fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Payable</h5>
      <ul class="procs">
        <li>ABC</li>
        <li>DEF</li>
        <li>GEH</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check" class="svg-inline--fa fa-money-check fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Receivable</h5>
      <ul class="procs">
        <li>Sales/Invoices</li>
        <li>Payments</li>
        <li>Retainage</li>
        <li>Inquiries</li>
        <li>Reports</li>
        <li>Sales Representatives</li>
        <li>Notes/Letters/Labels</li>
        <li>Month and Year End</li>
        <li>Purge Customer History</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check-alt" class="svg-inline--fa fa-money-check-alt fa-w-20" role="img" width="110px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Weekly Payroll</h5>
      <span class="procs">ABC, DEF, GEH</span>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-bill-alt" class="svg-inline--fa fa-money-bill-alt fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Payable</h5>
      <ul class="procs">
        <li>ABC</li>
        <li>DEF</li>
        <li>GEH</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check" class="svg-inline--fa fa-money-check fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Accounts Receivable</h5>
      <ul class="procs">
        <li>Sales/Invoices</li>
        <li>Payments</li>
        <li>Retainage</li>
        <li>Inquiries</li>
        <li>Reports</li>
        <li>Sales Representatives</li>
        <li>Notes/Letters/Labels</li>
        <li>Month and Year End</li>
        <li>Purge Customer History</li>
      </ul>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-check-alt" class="svg-inline--fa fa-money-check-alt fa-w-20" role="img" width="110px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"></path>
      </svg>
    </div>
  </div>
  <div class="card hvr-sweep-to-bottom">
    <div class="card-img-overlay">
      <h5 class="card-title">Weekly Payroll</h5>
      <span class="procs">ABC, DEF, GEH</span>
      <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="money-bill-alt" class="svg-inline--fa fa-money-bill-alt fa-w-20" width="110px" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
        <path fill="rgba(216, 216, 216, .7)" d="M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"></path>
      </svg>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans";
}
.background-image {
  background: url("https://images.unsplash.com/photo-1545113431-fbfe8423a32b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1835&q=80");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
  filter: blur(10px);
  background-color: rgba(30, 30, 30, 0.5);
  position: fixed;
  z-index: -1;
}
.background-color {
  background-color: rgba(0, 0, 0, 0.54);
  opacity: 0.93;
}
.card-layout {
  height: 100vh;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  grid-auto-rows: max-content;
  justify-content: center;
  /*   margin-top: 60px; */
  padding: 24px 18px;
}
.card {
  min-width: 250px;
  height: 275px;
  background: inherit;
  border-radius: 10px;
  padding: 18px 24px;
  overflow: hidden;
  transform: translateZ(0);
  transition-duration: 0.7s;
  transition-property: transform;
  z-index: 1;
}
.card:after {
  content: "";
  width: 250px;
  min-height: 220px;
  background: rgba(216, 216, 216, 0.1);
  padding: 18px 24px;
  position: absolute;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.05);
  filter: blur(10px);
  saturation: 100%;
}
.card:hover {
  transform: scale(1.05);
}
.card:focus {
  transform: scale(1.05);
}
.card:active {
  transform: scale(1.05);
}
.card-img-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
  margin-top: 2rem;
  margin-bottom: 1rem;
  min-height: 45px;
}
.procs {
  z-index: -1;
  position: absolute;
  visibility: hidden;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}
.hvr-sweep-to-bottom:before {
  background-color: inherit !important;
}
.hvr-sweep-to-bottom:hover .card-title {
  display: none;
}
.hvr-sweep-to-bottom:hover .procs {
  visibility: visible;
  z-index: 1;
  top: 0;
  text-align: center;
  vertical-align: middle;
  list-style: none;
  padding: 0;
}
.hvr-sweep-to-bottom:hover svg {
  display: none;
}
@keyframes resize-text {
  0% {
    font-size: 0.5rem;
  }
  100% {
    font-size: 1rem;
  }
}

              
            
!

JS

              
                // Resources:
// - Bootstrap 4
// - Hover.css
// - Font Awesome
// - Unsplash

              
            
!
999px

Console