Elements – Dropdowns

[vc_row full_width=”stretch_row”][vc_column][stack_hero image=”38″][vc_column_text]

Dropdowns

These modular elements can be readily used and customized across pages and in different blocks.


Explore all of Stack’s modular elements
at the Element Index Page →[/vc_column_text][/stack_hero][/vc_column][/vc_row][vc_section][vc_row css=”.vc_custom_1485825445121{margin-bottom: 30px !important;}”][vc_column width=”1/2″][stack_boxed_content padding=”boxed–lg” background=”bg–secondary”][vc_column_text]

Basic Dropdown

Stack’s dropdowns can serve a number of purposes, from navigation menu to multi-choice button. There are a number of ways to present a dropdown, but all follow the same markup pattern of a parent .dropdown element with a .dropdown__trigger which when clicked, will display the dropdown housed inside the .dropdown__container element.

The width of the dropdowns are controlled using the Bootstrap column classes.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][stack_dropdown title=”Trigger Dropdown”][vc_column_text]I’m the content inside the .dropdown__content element. My width is controlled using the Bootstrap column classes. You can read more about those here[/vc_column_text][/stack_dropdown][/vc_column][/vc_row][/vc_section][vc_section][vc_row css=”.vc_custom_1485825445121{margin-bottom: 30px !important;}”][vc_column width=”1/2″][stack_boxed_content padding=”boxed–lg” background=”bg–secondary”][vc_column_text]

Easily create dropdown menus by nesting .menu-vertical elements inside the dropdowns.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][stack_dropdown column_width=”2″ title=”Trigger Dropdown”][vc_column_text]

Select an option
[/vc_column_text][/stack_dropdown][/vc_column][/vc_row][/vc_section][vc_section][vc_row css=”.vc_custom_1485825445121{margin-bottom: 30px !important;}”][vc_column width=”1/2″][stack_boxed_content padding=”boxed–lg” background=”bg–secondary”][vc_column_text]

Hover Dropdown

By default, dropdowns are triggered by clicking the .dropdown__trigger element. If you would prefer the hover to react upon hovering, you can add the class .dropdown–hover to the .dropdown element.

If you would prefer all dropdowns to react to hover instead of click, add the class .dropdowns–hover to the <body> element.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][stack_dropdown column_width=”2″ title=”Dropdown Menu” custom_css_class=”dropdown–hover”][vc_column_text]

Select an option
[/vc_column_text][/stack_dropdown][/vc_column][/vc_row][/vc_section][vc_row][vc_column][vc_column_text]

See dropdown elements in action

VIEW NAVIGATION SECTIONS

or try the admin demo ↗

[/vc_column_text][/vc_column][/vc_row]