.link{ color: #333; font-family: 'Signika', sans-serif; font-size: 25px; font-weight: 700; text-transform: lowercase; line-height: 20px; letter-spacing: 1px; padding: 4px 1px 0; display: inline-block; overflow: hidden; position: relative; z-index: 1; transition: all 0.5s ease 0.2s; } .link:focus, .link:hover{ color: #fff; } .link:before{ content: ''; background: linear-gradient(to right,#ef32d9,#89fffd); height: 2px; width: 100%; transform: translateY(-50%); position: absolute; left: 0; top: 1px; z-index: -1; transition: top 0.3s ease 0s,height 0.3s ease 0.3s; } .link:hover:before{ height: 100%; top: 50%; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }