A fantastic tutorial by Claudia Romano that explains how to create a morphing dropdown navigation menu as seen on stripe.com with few lines of HTML, CSS and vanilla JavaScript.

View tutorial