CSS Only Stacked Card Template – Card.css

Category: CSS & CSS3 , Recommended | September 16, 2020
Author:fireship-io
Views Total:58 views
Official Page:Go to website
Last Update:September 16, 2020
License:MIT

Preview:

CSS Only Stacked Card Template – Card.css

Description:

Card.css is a CSS library to create modern, responsive, stacked cards for profiles, products, articles, and more.

How to use it:

1. Download the package and load the card.css in the document.

<link rel=”stylesheet” href=”card.css” />

2. Create stacked cards on the page.

<section class="card-list">
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Never forget</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="avatar.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Author</div>
        Jeff Delaney
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
      <a href="#">web-dev</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/a.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        Zheng Zhilong
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/b.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        Francis Drake
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/c.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        Edward Teach
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/d.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        William Kidd
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/d.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        William Kidd
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
  <article class="card">
    <header class="card-header">
      <p>Sep 11th 2020</p>
      <h2>Card Tricks are fun!</h2>
    </header>
    <div class="card-author">
      <a class="author-avatar" href="#">
      <img src="https://api.adorable.io/avatars/172/d.png" />
      </a>
      <svg class="half-circle" viewBox="0 0 106 57">
        <path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path>
      </svg>
      <div class="author-name">
        <div class="author-name-prefix">Pirate</div>
        William Kidd
      </div>
    </div>
    <div class="tags">
      <a href="#">html</a>
      <a href="#">css</a>
    </div>
  </article>
</section>

You Might Be Interested In:


Leave a Reply