<a href="#" class="dots">
  <div class="dot"></div>
</a>
html, body {
  height: 100%;
}

body {
  background-color: #2ecc71;
}

.dot, .dot:before, .dot:after {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background-color: #34495e;
}

.dot {
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
}

.dot:before, .dot:after {
  content: "";
}

.dot:before {
  right: 25px;
  transition: right .3s ease-out;
}

.dot:after {
  left: 25px;
  transition: left .3s ease-out;
}

.dots:hover .dot:before {
  right: -25px;
}

.dots:hover .dot:after {
  left: -25px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js