It’s a collection of list items inside a div so it would need to target a hidden input field whenever a value is selected. Unfortunately this does not run on the native HTML select element. I’ve never seen anything quite like this before and it shows how far we’ve come pushing the limits of web browsers. When you click to expand the menu, it’ll animate into an X icon for closing/hiding. This custom menu has its own plus icon design running with a pure SVG file. With a bit of SVG magic you can transform this into any other icon you please. SVG Icon Menuĭefault select menus have the arrow icon to the side and not much else. And these can work surprisingly well if you hack your way through the CSS to customize them a little. Still these select menus run the old-school web 2.0 gradients which may not fit into a design for 2017 and beyond.īut this shows you can take select menus anywhere you want with a little creativity. It’s called graceful degradation and it’s a web developer’s best friend for accessibility. What’s nice is this menu also supports the no-JS feature so it’ll work even if JavaScript is disabled. This snippet created by Andy Fitzsimon relies on JavaScript for the dropdown effect and uses custom CSS for gradients and arrow icons. Here’s one of the more stylized examples of what you can do with select menus. You have full control to make edits in the CSS and best of all these should work in all major browsers too. One of my favorites is this snippet featuring not just pure CSS select menus, but radios and checkboxes too.Īll of them look phenomenal and should blend into any type of layout. This isn’t easy but there are so many solutions out there. I’m a big fan of pure CSS over JavaScript because it simplifies the entire design process. Totally your call!īut as a starting template this is one of the simplest choices for any interface. You could even take this template and expand it with your own flat styles applied to the dropdown area. It feels much classier than the ugly browser default. But just the restyling of the select itself does liven up the page. It still works just like a typical select and the dropdown portion hasn’t been changed at all. Flat DesignĪesthetics often matter in web design and this flat select menu is a great example. This way you never see the “select an option” text anywhere in the dropdown menu. An option field is hidden by default whenever the user picks a choice. It’s fully compliant and works with the actual HTML select element. This means it behaves more like a placeholder in text fields where you see it when the field is blank, but once you set a value it disappears. The actual design of this placeholder select menu is gorgeous, but the design isn’t the only factor here.ĭeveloper James Nowland created this menu with the goal of removing the default from the selection choice. Most changes are cosmetic so it shouldn’t affect user behavior very much. If you do worry about compatibility then consider working with this template. But overall these select menus work just like a normal one, and they’re gorgeous to use. Obviously you can remove that feature in your own layout and stick to one scheme that works for your site. They all have varying styles and sizes with buttons you can click to change the colors on demand. Non-Sucky HTML DropdownsĪs the name suggests, this pack of select menus aims to just not to suck. But I have to admit the design is gorgeous and would be perfect for desktop traffic. If compatibility is a concern then skip this one. This way you can still pull data from the frontend into your forms, because this solution technically doesn’t use the actual element. It works by targeting a hidden input field that behaves just like the select field. But it also uses JavaScript to animate the select menu in and out of view. This relies on more subtle colors with a plain black & white color scheme. Here’s another very simple select box that aims to blend more naturally into every layout. Best of all he includes a custom upload field design which, if you’ve ever tried to restyle, you’ll know it’s tough.Īn excellent place to start if you just want a clean yet fresh-looking select menus that work. You can choose the size and color style of the menu or work with Wallace’s defaults. They behave slightly differently than standard HTML selects, and I think they’re a little nicer to use. It uses both CSS for restyling and JavaScript for configuring the UX of the menus. Kicking off the collection is Wallace Erick’s custom select menu styles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |