.link{ color: #555; font-family: 'Ubuntu', sans-serif; font-size: 22px; font-weight: 700; line-height: 20px; text-transform: uppercase; letter-spacing: 1px; overflow: hidden; display: inline-block; position: relative; transition: all 0.3s ease; } .link:hover, .link:focus{ color: transparent; } .link:before, .link:after{ content: attr(data-hover); color: #af223b; width: 100%; height: 100%; opacity: 0; position: absolute; top: 0; left: 100%; transition: all .4s ease 0s; clip-path: polygon(0 0 , 100% 0 , 100% 50% , 0 50%); } .link:after{ left: -100%; clip-path: polygon(0 50% , 100% 50% , 100% 100% , 0 100%); } .link:hover:before, .link:hover:after{ opacity: 1; left: 0; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }