Stripe.com Alike Morphing Navigation Dropdown

Analysis and reproduction – using jQuery – of the morphing navigation dropdown as seen on stripe.com:

Instead of hiding and showing a new dropdown “container” when the user switches from one navigation item to the other, they animate the dropdown background to make space for different content sizes.

The trick is that the dropdown items themselves are separated from the background layer .bg-layer:

When the user moves from a navigation item to a different one, the scaleX and scaleY values of the .bg-layer are changed (using JavaScript) to create the morph effect.

Stripe.com Navigation Demo →
Stripe.com Navigation Article →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.