<div class="container">
  <h1>Cat and Dog Hover Made With Bootstrap and CSS!</h1>
  <h2>Use your mouse and hover over the buttons. If you're on a mobile phone just press on them.</h2>
  <!-- Three columns of text below the carousel -->
  <div class="row">
    <div class="col-lg-6">
      <a target="_self" href="#" class="imgButton one">
        <img src="http://chrislanejones.com/wp-content/uploads/2017/02/cat.jpg" class="img-circle" alt="A Purrty Kitten" width="250" height="250" alt="A Cat Photo"></a>
      <h3>Cat</h3>
    </div>
    <!-- /.col-lg-4 -->
    <div class="col-lg-6">
      <a target="_self" href="#" class="imgButton two">
        <img class="img-circle" src="http://chrislanejones.com/wp-content/uploads/2017/02/dog.jpg" alt="A Dog with Red Bow" width="250" height="250" alt="A Dog Photo"></a>
      <h3>Dog</h3>
    </div>
    <!-- /.col-lg-4 -->
  </div>
  <!-- /.row -->
@import url('https://fonts.googleapis.com/css?family=Gloria+Hallelujah');
body {
  background-color: #9c0ce8;
}

h1 {
  margin-top: 10px;
  text-align: center;
  color: #E89C0C;
  font-family: 'Gloria Hallelujah', cursive;
  font-weight: 600;
  font-size: 3em;
}

h2 {
  text-align: center;
  color: #440CE8;
  font-family: 'arial', sans-serif;
  font-size: 2em;
}

h3 {
  text-align: center;
  color: #440CE8;
  font-family: 'Gloria Hallelujah', cursive;
  font-weight: 600;
  font-size: 1.4em;
}

.col-lg-6 {
  margin-bottom: 20px;
  margin-top: 5px;
  text-align: center;
}

.imgButton {
  position: relative;
}

.imgButton img {
  transform: translateY(0);
  transition: all .4s ease-out;
  border: .5em solid #e89c0c;
  -webkit-box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .3);
  -moz-box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .3);
  box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .3);
}

.one:before {
  content: 'I am a Cat!'
}

.two:before {
  content: 'and I am a Dog!'
}

.imgButton:before {
  position: absolute;
  padding: 15px 20px;
  left: -40px;
  bottom: -9px;
  font-size: 20px;
  font-family: 'Gloria Hallelujah', cursive;
  color: #7107E9;
  background: #ffffff;
  transition: all .4s ease-out;
  transform: translateY(150px);
  opacity: 0;
  z-index: 1;
  border-radius: 100px;
  font-weight: normal;
  border: .2em solid #E89C0C;
  -webkit-box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .5);
  -moz-box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .5);
  box-shadow: 8px 7px 5px 0px rgba(0, 0, 0, .5);
}

.imgButton:hover:before {
  bottom: 45px;
  opacity: 100;
}

.imgButton:hover img {
  transform: translateY(-10px);
}

.floatButton {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.floatButton:hover,
.floatButton:focus,
.floatButton:active {
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
}
// No JS Required
/* Please ❤ this if you like it! */

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.