.link{ color: #666; font-family: 'Ubuntu', sans-serif; font-size: 21px; font-weight: 500; line-height: 20px; text-transform: capitalize; letter-spacing: 1px; display: inline-block; position: relative; z-index: 1; transition: all 0.3s ease; } .link:focus, .link:hover{ color: #000; text-shadow: -2px -2px rgba(0,0,0,.1); } .link:before, .link:after{ content: ''; height: 13px; width: 13px; border: 2px solid red; border-left: none; border-bottom: none; transform: scale(0); position: absolute; right: 0; top: 0; z-index: -1; transition: all 0.3s ease; } .link:after{ border-color: orange; } .link:hover:before{ transform: scale(1); right: -4px; top: -2px; } .link:hover:after{ transform: scale(1); right: -9px; top: -7px; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }