<section class="new">

    <h2> NEW FOR 2020 </h2>

    <div class="container">
        <div class="card">
          <h3 class="title">Spooky Castle</h3>
          <div class="bar">
            <div class="emptybar"></div>
            <div class="filledbar"></div>
            <button class=" button"><span>VIEW </span></button>
          </div>
         
        </div>
        <div class="card">
          <h3 class="title"> SidMetrix</h3>
          <div class="bar">
            <div class="emptybar"></div>
            <div class="filledbar"></div>
              <button class=" button"><span>VIEW </span></button>
          </div>
          
        </div>
        <div class="card">
          <h3 class="title"> 13 Freaks </h3>
          <div class="bar">
            <div class="emptybar"></div>
            <div class="filledbar"></div>
             <button class=" button"><span>VIEW </span></button>
          </div>
        </div>

        <div class="card">
          <h3 class="title">Mass-Acre</h3>
          <div class="bar">
            <div class="emptybar"></div>
            <div class="filledbar"></div>
            <button class=" button"><span>VIEW </span></button>
          </div>
      </div>


     
    </section> 
@import url('https://fonts.googleapis.com/css?family=Montserrat:100');

html, body, h1 {
	padding: 0;
	margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: white;
  text-align: center;
   
}



// background 

.new {
    margin-top: -50px;
    background-image:linear-gradient( rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url(https://wallpaperaccess.com/full/756054.jpg);
    min-height: 600px; 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }


// cards

.container {
    position: absolute;
    height: 300px;
    width: 600px;
    left: calc(50% - 300px);
    display: flex;
  }
  
  .card {
    display: flex;
    height: 280px;
    width: 200px;
    background-color: black;
    border-radius: 10px;
    box-shadow: -1rem 0 3rem #2e3033;
  /*   margin-left: -50px; */
    transition: 0.4s ease-out;
    position: relative;
    left: 0px;
  }
  
  .card:not(:first-child) {
      margin-left: -50px;
  }
  
  .card:hover {
    transform: translateY(-20px);
    transition: 0.4s ease-out;
  }
  
  .card:hover ~ .card {
    position: relative;
    left: 50px;
    transition: 0.4s ease-out;
  }

// text
  
  .title {
    color: white;
    font-weight: 300;
    position: absolute;
    left: 20px;
    top: 15px;
  }
  

// animated bar

  .bar {
    position: absolute;
    top: 100px;
    left: 20px;
    height: 5px;
    width: 150px;
  }
  
  .emptybar {
    background-color: #2e3033;
    width: 100%;
    height: 100%;
  }
  
  .filledbar {
    position: absolute;
    top: 0px;
    z-index: 3;
    width: 0px;
    height: 100%;
    background: red;
    background: linear-gradient(90deg, red 0%, black 65%, black 100%);
    transition: 0.6s ease-out;
  }
  
  .card:hover .filledbar {
    width: 120px;
    transition: 0.4s ease-out;
  }
  

//  view button


.button {
    margin-top: 30px;
    background-color:black;
    border: none;
    color: red;
    font-size: 15px;
    font-weight: 700;
    padding: 50px;
  }
  
  .button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    -webkit-transition: 0.5s;
    transition: 0.5s;
  }
  
  .button-top span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
  }
  
  .button:hover span {
    padding-right: 25px;
  }
  
  .button:hover span:after {
    opacity: 1;
    right: 0;
  }
  
  
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.