.link{ color: #555; font-family: 'Poppins', cursive; font-size: 22px; font-weight: 500; line-height: 20px; text-transform: capitalize; display: inline-block; position: relative; z-index: 1; transition: all 0.5s ease 0s; } .link:focus, .link:hover{ color: #10ac84; } .link:before{ content: ''; background-color: #0abde3; width: 100%; height: 100%; border-radius: 50px; opacity: 0; position: absolute; top: 0; left: 0; transition: all 0.3s ease 0s; } .link:hover:before{ width: 50%; opacity: 0.25; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }