<article class="card">
  <img src="https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" alt="">
  <h2>Title here</h2>
</article>
body {
  font-family: 'Arial';
}

.card {
  position: relative;
  width: 200px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px 0 rgba(#000, 0.35);
  margin: 2rem auto;
  
  &:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to top, #000, transparent);
  }
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  h2 {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    color: #fff;
    //z-index: 1;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.