<div class="box">
  <div class="btn blog-button">
    <div class="primary text">New Blog</div>
    <div class="secondary text">Read it now!</div>
  </div>
</div>
body {
  margin: 0;
  padding: 0;
}

.box {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222831;
}

.btn {
  width: 200px;
  height: 50px;
  background-color: #0fabbc;
  border-radius: 25px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  font-family: "Lucida Console", "Courier New", monospace;
  position: relative;
  overflow: hidden;
  cursor:pointer;
}

.text {
  width: 200px;
  height: 50px;
  position: absolute;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 17px;
  transition: top 0.7s;
  -moz-transition: top 0.7s; // Firefox
  -webkit-transition: top 0.7s; // Safari and Chrome
  -o-transition: top 0.7s; // Opera
  -ms-transition: top 0.7s; // Explorer
}

.primary {
  top: 0px;
}

.secondary {
  top: 80px;
}

.btn:hover .primary {
  top: -80px;
}

.btn:hover .secondary {
  top: 0px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.