Based on dribbble shot by Ennio Dybeli - https://dribbble.com/shots/2427219-Header-Navigation-Day-053-dailyui
Please note, that this demo is just an animation practice and it's probably useless in real world, because it's negatevily impacts usability.
A Pen by Nikolay Talanov on CodePen.