Card Design

  • STEPS

    1. html

    
                     
    
    
                      <div class="container">
       <div class="post">
          <div class="header_post">
             <img src="https://images.pexels.com/photos/2529973/pexels-photo-2529973.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" alt="">
          </div>
    
          <div class="body_post">
             <div class="post_content">
    
                <h1>Lorem Ipsum</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci animi assumenda cumque deserunt
                   dolorum ex exercitationem.</p>
    
                <div class="container_infos">
                   <div class="postedBy">
                      <span>author</span>
                      John Doe
                   </div>
    
                   <div class="container_tags">
                      <span>tags</span>
                      <div class="tags">
                         <ul>
                            <li>design</li>
                            <li>front end</li>
                         </ul>
                      </div>
    
                   </div>
                </div>
             </div>
          </div>
       </div>
    </div>
    
    <a href="https://youtu.be/Izm8SutcQv4" target="_blank">
       <footer>
          <div class="texto">
             <span>
                <i class="fab fa-youtube"></i>
                watch on youtube</span>
          </div>
       </footer>
    </a>
                     
                     
       
    
    
        
    
                    

    2. css

    
    
    
                   
              
                    @import  url("https://fonts.googleapis.com/css?family=Lato:300,400|Poppins:300,400,800&display=swap");
    * {
      margin: 0px;
      padding: 0;
    }
    
    body {
      font-family: "Poppins";
      overflow: hidden;
    }
    
    .container {
      width: 100%;
      height: 100vh;
      background-color: #232323;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .container .post {
      width: 350px;
      height: 500px;
      display: flex;
      overflow: hidden;
      flex-direction: column;
      position: relative;
    }
    .container .post:hover .header_post {
      margin-top: -20px;
    }
    .container .post:hover .body_post {
      height: 50%;
    }
    .container .post:hover img {
      transform: translatey(-10px) translatex(-5px) scale(1.05);
    }
    .container .post .header_post {
      width: 100%;
      height: 40%;
      background: #ddd;
      position: absolute;
      top: 0;
      -webkit-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -moz-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -ms-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -o-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
    }
    .container .post .header_post img {
      max-width: 100%;
      height: auto;
      transition: ease-in-out 600ms;
    }
    .container .post .body_post {
      width: 100%;
      height: 60%;
      background: #fff;
      position: absolute;
      bottom: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      -webkit-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -moz-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -ms-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -o-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      cursor: pointer;
    }
    .container .post .body_post .post_content {
      width: 80%;
      height: 80%;
      background: #fff;
      position: relative;
    }
    .container .post .body_post .post_content h1 {
      font-size: 20px;
      font-weight: bold;
    }
    .container .post .body_post .post_content p {
      font-size: 14px;
      font-weight: normal;
    }
    .container .post .body_post .post_content .container_infos {
      width: 100%;
      display: flex;
      justify-content: space-between;
      position: absolute;
      bottom: 0;
      border-top: 1px solid rgba(0, 0, 0, 0.2);
      padding-top: 25px;
    }
    .container .post .body_post .post_content .container_infos .postedBy {
      display: flex;
      flex-direction: column;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 12px;
    }
    .container .post .body_post .post_content .container_infos .postedBy span {
      font-size: 12px;
      text-transform: uppercase;
      opacity: 0.5;
      letter-spacing: 1px;
      font-weight: bold;
    }
    .container .post .body_post .post_content .container_infos .container_tags {
      display: flex;
      flex-direction: column;
    }
    .container .post .body_post .post_content .container_infos .container_tags span {
      font-size: 12px;
      text-transform: uppercase;
      opacity: 0.5;
      letter-spacing: 1px;
      font-weight: bold;
    }
    .container .post .body_post .post_content .container_infos .container_tags .tags ul {
      display: flex;
    }
    .container .post .body_post .post_content .container_infos .container_tags .tags ul li {
      font-size: 12px;
      letter-spacing: 2px;
      list-style: none;
      margin-left: 8px;
      text-transform: uppercase;
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: center;
      cursor: pointer;
    }
    .container .post .body_post .post_content .container_infos .container_tags .tags ul li:first-child {
      margin-left: 0px;
    }
    .container .post .body_post .post_content .container_infos .container_tags .tags ul li:before {
      content: "";
      text-align: center;
      width: 100%;
      height: 5px;
      background: #FC6042;
      opacity: 0.5;
      position: absolute;
      bottom: 0;
      z-index: -1;
      padding: 0px 1px;
      -webkit-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -moz-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -ms-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      -o-transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
      transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
    }
    .container .post .body_post .post_content .container_infos .container_tags .tags ul li:hover:before {
      height: 18px;
    }
    
    footer {
      width: 350px;
      height: 80px;
      background: #17A16F;
      position: absolute;
      right: 0;
      bottom: -80px;
      display: flex;
      justify-content: center;
      align-items: center;
      animation: top 0.8s forwards;
    }
    footer span {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: #fff;
      font-family: "Poppins";
    }
    footer span i {
      margin-right: 25px;
      font-size: 22px;
      color: #fff;
      animation: icon 2s forwards;
      opacity: 0;
    }
    
    @keyframes  top {
      0% {
        opacity: 0;
        bottom: -80px;
      }
      100% {
        opacity: 1;
        bottom: 0px;
      }
    }
    @keyframes  icon {
      0% {
        opacity: 0;
        transform: scale(0);
      }
      50% {
        opacity: 1;
        transform: scale(1.3) rotate(-2deg);
      }
      100% {
        opacity: 1;
        bottom: 0px;
      }
    }