.link{ color: #000; font-family: 'PT Sans Caption', sans-serif; font-size: 24px; font-weight: 600; line-height: 24px; text-transform: capitalize; padding: 6px 6px; display: inline-block; overflow: hidden; position: relative; z-index: 1; transition: all 0.5s; } .link:focus, .link:hover{ color: #fff; } .link:before{ content: ""; background: #0652DD; border-radius: 100%; transform: scale(0); position: absolute; top: 0; left: 0; right: 0; bottom: 0; transition: all 0.3s ease-out; z-index: -1; } .link:hover:before{ transform: scale(1.5); } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }