.link{ color: #000; font-family: 'Chakra Petch', sans-serif; font-size: 25px; font-weight: 500; line-height: 27px; text-transform: capitalize; letter-spacing: 1px; display: inline-block; margin: 0 10px; position: relative; z-index: 1; transition: all 0.5s ease 0s; } .link:focus, .link:hover{ color: #4aae03; } .link:before, .link:after{ content: "["; color: #000; width: 100%; opacity: 0; position: absolute; top: 0; left: 10px; transition: all 0.5s ease 0s; } .link:after{ content: "]"; left: auto; right: -100px; } .link:hover:before, .link:hover:after{ color: #4aae03; opacity: 1; } .link:hover:before{ left: -10px; } .link:hover:after{ right: -115px; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }