.link{ color: #000; font-family: 'Slabo 27px', serif; font-size: 24px; line-height: 18px; text-transform: capitalize; display: inline-block; position: relative; z-index: 1; transition: all 0.5s; } .link:focus, .link:hover{ color: #0045be; } .link:before, .link:after{ content: ""; background: linear-gradient(to left bottom,#0045be 50%,transparent 50%); width: 12px; height: 12px; opacity: 0; position: absolute; right: 10px; top: 10px; transition: all 0.5s ease 0s; } .link:after{ transform: rotate(180deg); left: 10px; right: auto; top: auto; bottom: 10px; } .link:hover:before{ opacity: 1; top: -5px; right: -7px; } .link:hover:after{ opacity: 1; bottom: -5px; left: -7px; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }