.link{ color: #000; font-family: 'Zilla Slab', serif; font-size: 25px; font-weight: 500; line-height: 20px; text-transform: capitalize; letter-spacing: 1px; padding-left: 7px; display: inline-block; position: relative; z-index: 1; transition: all 0.5s ease 0s; } .link:focus, .link:hover{ color: #e86a04; } .link:after{ content: ''; background: #000; height: 7px; width: 7px; opacity: 1; transform: translateY(-50%); position: absolute; top: 50%; left: 0; z-index: -1; transition: all 0.4s ease 0s; clip-path: polygon(0 0, 100% 50%, 0 100%); } .link:hover:after{ background-color: #ccc; height: 25px; width: 25px; opacity: 1; left: calc(100% - 20px); } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }