<div class="container">
  <a href="#">Discover our technology</a>
</div>
html, body {
  height: 100%;
  font-family: paralucent, sans-serif;
  font-style: normal;
  font-weight: 400;
  overflow: hidden;
  
}

.container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  position: relative;
  text-decoration: none;
  color: black;
  padding: 0;
  font-size: 24px;
  transition: padding .3s ease;
  
  &:hover {
    padding: 0 15px;
  }
  
  &:after {
    position: absolute;
    top: 30px;
    content:'';
    display: block;
    background: #3D0FAA;
    height: 8px;
    width: 100%;
    z-index: -1;
    left: 0;
    transition: all .3s ease;
  }
  
  &:hover {
    &:after {
      top: 15px;
      height: 20px;
      background: #00F5FF;
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.