<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body>
  <h1>Tooltip challenge</h1>
  <div class="tooltip"><i class="fa fa-envelope"></i>
  <span class="tooltiptext">You have no new messages. Not one - not even from your mother.</span>
</div>
</body>

body {
  text-align: center;
  background-color: #333;
  color: white;
  font-family: Helvetica;
}
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  font-size: 100px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 10px;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 110%;
  font-size: 20px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  animation-name: fade-in;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes fade-in{
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}
.tooltip:hover {
    animation-name: hover;
  animation-duration: 700ms;
  animation-fill-mode: forwards;
}
@keyframes hover {
  100% {
    color: black;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.