JSFiddle - React, Tailwind, and code Playground

by yash009

HTML

<div class="col-xs-12 col-sm-6 imageContainer" id="bryan">
            <figure class="tint">                <img class="meetTheTeamImg leaders" alt=""   src="https://www.holmescustom.com/media/wysiwyg/Bryan.jpg"/>
                <div class="middle">
                    <div class=textName>Bryan Croft</div>
                    <p>President And CEO</p>
                </div>
                </figure>
            </div>

CSS

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  color: #000;
}
.imageContainer:hover .meetTheTeamImg {
  opacity: 0.5;
}
.imageContainer:hover .middle {
  opacity: 1;
}
.tint {
  position: relative;
  float: left;
  cursor: pointer;
  box-shadow: rgba(0,0,0,.2) 3px 5px 5px;
}
.tint:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: none;
  transition: all .3s linear;
}
.tint:hover:before { background: rgba(0,255,255, 0.5) }