Stripe Menu Dropdowns (CSS)

In a previous article I wrote, Minimal CSS: Dropdown Menus, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn’t show just how complex (in a good way) …


This content originally appeared on Ugly Duck and was authored by Bradley Taunt

In a previous article I wrote, Minimal CSS: Dropdown Menus, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn’t show just how complex (in a good way) you can make CSS-only menus. So, let’s do just that.

What we want to emulate

I think, like most designers, that the UI and web design work from the Stripe team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:

They don’t work if JavaScript is disabled.

But we can easily fix that. So enough chit-chat, let’s rip-off their menu design and recreate it with only CSS!

Original (Stripe Website)

Stripe Default Menu
Stripe's default menu dropdown (using both CSS & JavaScript)

Our recreation (CodePen Demo)

Stripe Menu Recreated
Our recreation with pure CSS (zero JavaScript)

Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it’s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.

See it live in action

Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!

See the Pen Stripe Menu Dropdown (Pure CSS) by Bradley Taunt (@bradleytaunt) on CodePen.


This content originally appeared on Ugly Duck and was authored by Bradley Taunt


Print Share Comment Cite Upload Translate Updates
APA

Bradley Taunt | Sciencx (2020-03-31T00:00:00+00:00) Stripe Menu Dropdowns (CSS). Retrieved from https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/

MLA
" » Stripe Menu Dropdowns (CSS)." Bradley Taunt | Sciencx - Tuesday March 31, 2020, https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/
HARVARD
Bradley Taunt | Sciencx Tuesday March 31, 2020 » Stripe Menu Dropdowns (CSS)., viewed ,<https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/>
VANCOUVER
Bradley Taunt | Sciencx - » Stripe Menu Dropdowns (CSS). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/
CHICAGO
" » Stripe Menu Dropdowns (CSS)." Bradley Taunt | Sciencx - Accessed . https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/
IEEE
" » Stripe Menu Dropdowns (CSS)." Bradley Taunt | Sciencx [Online]. Available: https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/. [Accessed: ]
rf:citation
» Stripe Menu Dropdowns (CSS) | Bradley Taunt | Sciencx | https://www.scien.cx/2020/03/31/stripe-menu-dropdowns-css/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.