implement animated menu bar with pseudo element.