[vc_row full_width=”stretch_row”][vc_column][stack_hero image=”38″][vc_column_text]
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 css=”.vc_custom_1498220906182{padding-top: 0px !important;}”][vc_row css=”.vc_custom_1485825445121{margin-bottom: 30px !important;}”][vc_column width=”1/2″][vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJhbGVydCUyMGJnLS1lcnJvciUyMiUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUzQ2RpdiUyMGNsYXNzJTNEJTIyYWxlcnRfX2JvZHklMjIlM0UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlM0NzcGFuJTNFJTNDc3Ryb25nJTNFTm90ZSUzQSUzQyUyRnN0cm9uZyUzRSUyME1vZGFscyUyMGFyZSUyMG5vdyUyMGZ1bGx5JTIwY29tcGF0aWJsZSUyMHdpdGglMjBWYXJpYW50JTIwdGhhbmtzJTIwdG8lMjBvdXIlMjBuZXclMjBmcmVlJTIwcGx1Z2luJTJDJTIwU3RhY2slMjBNb2RhbHMuJTIwRm9yJTIwZGV0YWlscyUyMGFuZCUyMGRvd25sb2FkJTBBJTIwc2VlJTIwJTNDYSUyMGhyZWYlM0QlMjJodHRwJTNBJTJGJTJGd3d3LnRvbW11c3Job2R1cy5jb20lMkZmcmVlLXBsdWdpbi1zdGFjay1tb2RhbHMtc2ltcGxlLW1vZGFsLWV4dGVuc2lvbi1zdGFjay13b3JkcHJlc3MlMkYlMjIlM0V0aGlzJTIwYmxvZyUyMHBvc3QuJTNDJTJGYSUzRSUzQyUyRnNwYW4lM0UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlM0MlMkZkaXYlM0UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlM0NkaXYlMjBjbGFzcyUzRCUyMmFsZXJ0X19jbG9zZSUyMiUzRSVDMyU5NyUzQyUyRmRpdiUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUzQyUyRmRpdiUzRQ==[/vc_raw_html][vc_empty_space][stack_boxed_content padding=”boxed–lg” background=”bg–secondary”][vc_column_text]
Modals in Stack are easy to set up and trigger from any element on the page. At their most basic usage, an element with class .modal-trigger inside the same .modal-instance triggers the modal to appear.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″ el_class=”xx”][stack_modal button_text=”Trigger Modal”][vc_column_text]
Stack’s visual style is simple yet distinct, making it an ideal starting point for your project whether it be a basic marketing site, or multi-page company presence.
[/vc_column_text][/stack_modal][/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]
Modals can be triggered automatically after a period of time once the page has been loaded by adding data-autoshow=”” to the .modal-container element. The attribute requires a numerical value in milliseconds, ie. a value of 1000 would show the modal 1 second after the page has loaded.
[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][stack_modal button_text=”Trigger Modal” autoshow=”1000″][vc_column_text]
Stack’s visual style is simple yet distinct, making it an ideal starting point for your project whether it be a basic marketing site, or multi-page company presence.
[/vc_column_text][/stack_modal][/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]
Adding attribute data-cookie to any modal container will make the modal a one-time modal. When the modal is dismissed, a browser cookie is set, and the modal is permanently dismissed. Any future page views will not show the modal. The cookie will suppress modals shown via triggers and via autoshow. The text set in the `data-cookie` modal will be used as the name for the cookie.
The one-time modal is handy to alert users to a message which they can “accept” or “agree” to, such as an EU Cookies law notice, a promo/sale or a newsletter signup offer.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][/vc_column][/vc_row][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]
“Exit” modals can be used to draw the user’s attention to a promotion or any other alert when their mouse leaves a particular element on the page. Exit modals use the data-show-on-exit attribute to set a selector matching the element where the user’s mouse must exit to show the modal. This means that you could set this selector to match your “Check Out” button, the body of the page, or even a single section on your page so the modal shows when the user scrolls past it. You could also use an exit modal to draw attention back to the page when the user’s mouse leaves the browser window.[/vc_column_text][/stack_boxed_content][/vc_column][vc_column width=”1/2″][stack_boxed_content padding=”boxed–lg” background=”bg–secondary” custom_css_class=”element-to-exit”][vc_column_text]
An “exit modal” will show immediately, each time your mouse leaves this box.
[/vc_column_text][/stack_boxed_content][stack_modal button_text=”Trigger Modal” exit=”.element-to-exit”][vc_column_text]
With Stack, you can easily configure modals to appear when your user’s mouse leaves a specific element.
[/vc_column_text][/stack_modal][/vc_column][/vc_row][/vc_section]