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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- google font -->
  <link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans+TC:wght@400;500;700&display=swap" rel="stylesheet">
  <!-- Font-awsome -->
  <!--     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
    </link> -->
  <!-- animate -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.0/animate.min.css" />
</head>

<body>
  <div class="wrap">
    <div class="content">
      <h1>My Cards</h1>
      <ul class="card">
        <li class="item-group">
          <div class="item">
            <div class="title">E.SUN BANK</div>
            <div class="id">
              <span class="chip"><em class="line"></em></span>
              <i class="fas fa-wifi"></i>
            </div>
            <div class="information">
              <div class="num">1234 5678 9876 5432</div>
            </div>
            <div class="icon">MasterCard</div>
          </div>
          <ul class="container">
            <li class="list">
              <i class="fab fa-amazon"></i>
              <div class="project">
                <h4>Amazon</h4>
                <p>Groceries</p>
              </div>
              <div class="price">
                <p>$8.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-uber"></i>
              <div class="project">
                <h4>Uber</h4>
                <p>Transportation</p>
              </div>
              <div class="price">
                <p>$18.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-apple-pay"></i>
              <div class="project">
                <h4>Apple Pay</h4>
                <p>Transaction</p>
              </div>
              <div class="price">
                <p>$28.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-football-ball"></i>
              <div class="project">
                <h4>Dribbble</h4>
                <p>Pro account</p>
              </div>
              <div class="price">
                <p>$38.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-google-play"></i>
              <div class="project">
                <h4>Google Play</h4>
                <p>Software</p>
              </div>
              <div class="price">
                <p>$48.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-gift"></i>
              <div class="project">
                <h4>Gift</h4>
                <p>Toys</p>
              </div>
              <div class="price">
                <p>$58.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-bitcoin"></i>
              <div class="project">
                <h4>Investment</h4>
                <p>Stocks</p>
              </div>
              <div class="price">
                <p>$68.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-dog"></i>
              <div class="project">
                <h4>Puppy</h4>
                <p>Shower</p>
              </div>
              <div class="price">
                <p>$78.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
          </ul>
        </li>
        <li class="item-group">
          <div class="item">
            <div class="title">Taishin Bank</div>
            <div class="id">
              <span class="chip"><em class="line"></em></span>
              <i class="fas fa-wifi"></i>
            </div>
            <div class="information">
              <div class="num">1234 5678 9876 5432</div>
            </div>
            <div class="icon">MasterCard</div>
          </div>
          <ul class="container">
            <li class="list">
              <i class="fab fa-amazon"></i>
              <div class="project">
                <h4>Amazon</h4>
                <p>Groceries</p>
              </div>
              <div class="price">
                <p>$8.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-uber"></i>
              <div class="project">
                <h4>Uber</h4>
                <p>Transportation</p>
              </div>
              <div class="price">
                <p>$18.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-apple-pay"></i>
              <div class="project">
                <h4>Apple Pay</h4>
                <p>Transaction</p>
              </div>
              <div class="price">
                <p>$28.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-football-ball"></i>
              <div class="project">
                <h4>Dribbble</h4>
                <p>Pro account</p>
              </div>
              <div class="price">
                <p>$38.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-google-play"></i>
              <div class="project">
                <h4>Google Play</h4>
                <p>Software</p>
              </div>
              <div class="price">
                <p>$48.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-gift"></i>
              <div class="project">
                <h4>Gift</h4>
                <p>Toys</p>
              </div>
              <div class="price">
                <p>$58.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-bitcoin"></i>
              <div class="project">
                <h4>Investment</h4>
                <p>Stocks</p>
              </div>
              <div class="price">
                <p>$68.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-dog"></i>
              <div class="project">
                <h4>Puppy</h4>
                <p>Shower</p>
              </div>
              <div class="price">
                <p>$78.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
          </ul>
        </li>
        <li class="item-group">
          <div class="item">
            <div class="title">Cathay United Bank</div>
            <div class="id">
              <span class="chip"><em class="line"></em></span>
              <i class="fas fa-wifi"></i>
            </div>
            <div class="information">
              <div class="num">1234 5678 9876 5432</div>
            </div>
            <div class="icon">MasterCard</div>
          </div>
          <ul class="container">
            <li class="list">
              <i class="fab fa-amazon"></i>
              <div class="project">
                <h4>Amazon</h4>
                <p>Groceries</p>
              </div>
              <div class="price">
                <p>$8.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-uber"></i>
              <div class="project">
                <h4>Uber</h4>
                <p>Transportation</p>
              </div>
              <div class="price">
                <p>$18.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-apple-pay"></i>
              <div class="project">
                <h4>Apple Pay</h4>
                <p>Transaction</p>
              </div>
              <div class="price">
                <p>$28.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-football-ball"></i>
              <div class="project">
                <h4>Dribbble</h4>
                <p>Pro account</p>
              </div>
              <div class="price">
                <p>$38.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-google-play"></i>
              <div class="project">
                <h4>Google Play</h4>
                <p>Software</p>
              </div>
              <div class="price">
                <p>$48.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-gift"></i>
              <div class="project">
                <h4>Gift</h4>
                <p>Toys</p>
              </div>
              <div class="price">
                <p>$58.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fab fa-bitcoin"></i>
              <div class="project">
                <h4>Investment</h4>
                <p>Stocks</p>
              </div>
              <div class="price">
                <p>$68.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
            <li class="list">
              <i class="fas fa-dog"></i>
              <div class="project">
                <h4>Puppy</h4>
                <p>Shower</p>
              </div>
              <div class="price">
                <p>$78.8</p>
                <p>25.08.2020</p>
              </div>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</body>

</html>
              
            
!

CSS

              
                * {
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  line-height: 1.5em;
  letter-spacing: 0.1em;
  font-family: "Lato", "Noto Sans TC", sans-serif;
}

a {
  text-decoration: none;
}

.wrap {
  max-width: 1024px;
  margin: 0 auto;
}

.content {
  width: 50%;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content h1 {
  background: linear-gradient(90deg, #ffb600 10%, #ff4800 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 767px) {
  .content {
    width: 90%;
    margin: 15px auto;
  }
}

.card {
  width: 100%;
  margin-top: 50px;
  padding: 30px;
  border: 3px solid #50517e;
  border-radius: 10px;
  background-color: #fff;
  position: relative;
  box-shadow: 30px 30px 15px #ccc;
}

@media (max-width: 767px) {
  .card {
    margin-top: 25px;
    padding: 15px;
  }
}

.card::after {
  content: "";
  width: 90%;
  height: 95%;
  background-color: #f1f1f1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: 10px;
  z-index: 0;
}

.card .item-group {
  width: 90%;
  margin: 0 auto;
  position: relative;
}

.card .item-group .item {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 10px 10px 5px #ccc;
  cursor: pointer;
}

.card .item-group:nth-child(1) .item {
  background: linear-gradient(135deg, #42bfdd 30%, #00a8e8 70%);
}

.card .item-group:nth-child(2) .item {
  background: linear-gradient(135deg, #9d0208 30%, #ef233c 70%);
}

.card .item-group:nth-child(3) .item {
  background: linear-gradient(135deg, #003459 30%, #007ea7 70%);
}

.item .information,
.item .id {
  width: 100%;
  display: flex;
  align-items: center;
}

.item .id {
  justify-content: flex-end;
  padding: 5px 0;
  position: relative;
}

.id .chip {
  width: 60px;
  height: 50px;
  background: linear-gradient(135deg, #fff 10%, #c0c0c0 50%, #fff 90%);
  border-radius: 10px;
  position: absolute;
  top: -10px;
  left: 10px;
}

.chip::before,
.chip::after {
  content: "";
  width: 1px;
  background-color: #333533;
  position: absolute;
  bottom: 0;
}

.chip::before {
  height: 100%;
  left: 20px;
}

.chip::after {
  height: 35px;
  left: 40px;
}

.chip .line {
  position: absolute;
  width: 20px;
  height: 1px;
  background-color: #646e78;
  top: 15px;
  box-shadow: 0 10px 0 #646e78, 0 20px 0 #646e78, 40px 0 0 #646e78,
    40px 10px 0 #646e78, 40px 20px 0 #646e78;
}

.item .title {
  padding: 30px 0;
  font-size: 24px;
}

.title .pic {
  width: 0px;
}

.item .information {
  justify-content: center;
}

.information .num {
  letter-spacing: 0.2em;
  padding: 5px 0;
  font-size: 24px;
  text-shadow: 2px 0px 2px #333533;
  animation: change 3s ease-in-out infinite alternate;
}

@keyframes change {
  from {
    background-color: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  to {
    background-color: #bbb;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.id .fas {
  transform: rotate(90deg);
  font-size: 28px;
}

.id .fas:hover {
  animation: falsh 0.5s ease infinite alternate;
}

@keyframes falsh {
  from {
    color: #fff;
  }
  to {
    color: #03256c;
  }
}

.icon {
  padding: 10px 0;
  text-align: right;
  position: relative;
  letter-spacing: 0;
  font-size: 14px;
  font-style: italic;
  font-weight: bold;
}

.icon::before,
.icon::after {
  content: "";
  width: 45px;
  height: 45px;
  border-radius: 50%;
  position: absolute;
  top: 0px;
  z-index: -1;
}

.icon::before {
  background-color: #d90429;
  opacity: 0.9;
  z-index: -1;
}

.icon::after {
  background-color: #ff8200;
  right: -5px;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .card .item-group .item {
    padding: 20px 10px;
  }
  .item .title {
    padding: 15px 0 15px 20px;
    font-size: 18px;
  }
  .information .num {
    padding: 10px 0;
    font-size: 18px;
    letter-spacing: 0.1em;
  }
  .id .fas {
    font-size: 16px;
    margin-right: 10px;
  }
  .id .chip {
    width: 50px;
    height: 40px;
    left: 20px;
  }
  .chip::before {
    height: 100%;
    left: 15px;
  }
  .chip::after {
    height: 30px;
    left: 35px;
  }
  .chip .line {
    width: 15px;
    top: 10px;
    box-shadow: 0 10px 0 #646e78, 0 20px 0 #646e78, 35px 0 0 #646e78,
      35px 10px 0 #646e78, 35px 20px 0 #646e78;
  }
  .icon {
    font-size: 0;
  }
  .icon::before,
  .icon::after {
    width: 25px;
    height: 25px;
    top: -5px;
  }
  .icon::before {
    right: 30px;
  }
  .icon::after {
    right: 10px;
  }
}

@media (max-width: 321px) {
  .card .item-group .item {
    padding: 10px;
  }
  .information .num {
    font-size: 14px;
  }
}

.container {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  margin: 30px 0;
  position: relative;
  z-index: 2;
  display: none;
}

.container .list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.list + .list {
  padding-top: 30px;
}

.list::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #ccc;
  position: absolute;
  left: 0;
  bottom: -15px;
}

.list:last-child::after {
  display: none;
}

.list i {
  width: 20%;
  font-size: 24px;
  text-align: center;
}

.list .project {
  width: 30%;
}

.list .price {
  width: 50%;
  text-align: right;
}

@media (max-width: 767px) {
  .list i {
    width: 10%;
    font-size: 16px;
  }
  .list .project,
  .list .price {
    width: 45%;
    font-size: 14px;
  }
  .list .project {
    text-align: center;
  }
  .list .project p {
    display: none;
  }
}

              
            
!

JS

              
                (function () {
  $(".item-group").on("click", function () {
    $(this).siblings().slideToggle(1000);
    $(this).find(".container").slideToggle(500);
  });
})();

              
            
!
999px

Console