{"id":167,"date":"2017-01-31T18:19:52","date_gmt":"2017-01-31T18:19:52","guid":{"rendered":"http:\/\/tommustester.wpengine.com\/?page_id=167"},"modified":"2017-01-31T18:19:52","modified_gmt":"2017-01-31T18:19:52","slug":"modals","status":"publish","type":"page","link":"https:\/\/radialcircle.com\/index.php\/modals\/","title":{"rendered":"Elements &#8211; Modals"},"content":{"rendered":"<body><p>[vc_row full_width=\u201dstretch_row\u201d][vc_column]\n\t\t\t<section class=\"imagebg image--light cover cover-blocks bg--secondary \" >\n\t\t\t\t<div class=\"background-image-holder\"><img loading=\"lazy\" decoding=\"async\" width=\"3600\" height=\"1762\" src=\"https:\/\/i0.wp.com\/radialcircle.com\/wp-content\/uploads\/2017\/01\/promo-1.jpg?fit=3600%2C1762&amp;ssl=1\" class=\"attachment-full size-full\" alt=\"\" \/><\/div>\n\t\t\t\t<div class=\"container\">\n\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-sm-6 col-md-5\">\n\t\t\t\t\t\t\t<div>[vc_column_text]<\/p>\n<h1>Modals<\/h1>\n<p class=\"lead\">These modular elements can be readily used and customized across pages and in different blocks.<\/p>\n<hr class=\"short\">\n<p>Explore all of Stack\u2019s modular elements<br>\nat the\u00a0<a href=\"\/elements\/\">Element Index Page \u2192<\/a>[\/vc_column_text]<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div><!--end of row-->\n\t\t\t\t<\/div><!--end of container-->\n\t\t\t\t\n\t\t\t<\/section>\n\t\t[\/vc_column][\/vc_row][vc_section css=\u201d.vc_custom_1498220906182{padding-top: 0px !important;}\u201d][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033][vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJhbGVydCUyMGJnLS1lcnJvciUyMiUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUy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AlMjAlM0NkaXYlMjBjbGFzcyUzRCUyMmFsZXJ0X19jbG9zZSUyMiUzRSVDMyU5NyUzQyUyRmRpdiUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUzQyUyRmRpdiUzRQ==[\/vc_raw_html][vc_empty_space]<div class=\" boxed--lg bg--secondary  boxed boxed--border\" ><div class=\"container\">[vc_column_text]<\/p>\n<h4>Basic Modal<\/h4>\n<p>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 <strong>.modal-trigger<\/strong> inside the same <strong>.modal-instance<\/strong> triggers the modal to appear.[\/vc_column_text]<\/div><\/div>[\/vc_column][vc_column width=\u201d1\/2\u2033 el_class=\u201dxx\u201d]\n\t\t<div class=\"modal-instance \">\n\t\t\t<a class=\"btn  modal-trigger\" href=\"#\">Trigger Modal<\/a>\n\t\t\t<div class=\"modal-container\"   >\n\t\t\t\t\n\t\t\t<div class=\"modal-content\">\n\t\t\t\t<div class=\"boxed boxed--lg\">\n\t\t\t\t\t[vc_column_text]<\/p>\n<h2>Here is a basic text modal<\/h2>\n<hr class=\"short\">\n<p class=\"lead\">Stack\u2019s 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.<\/p>\n<p>[\/vc_column_text]\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\n\t\t\t<\/div>\n\t\t<\/div><!--end of modal instance-->\n\t[\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033]<div class=\" boxed--lg bg--secondary  boxed boxed--border\" ><div class=\"container\">[vc_column_text]<\/p>\n<h4>Autoshow Modal<\/h4>\n<p>Modals can be triggered automatically after a period of time once the page has been loaded by adding <strong>data-autoshow=\u201d\u201d<\/strong> to the <strong>.modal-container<\/strong> 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.<\/p>\n<p>[\/vc_column_text]<\/div><\/div>[\/vc_column][vc_column width=\u201d1\/2\u2033]\n\t\t<div class=\"modal-instance \">\n\t\t\t<a class=\"btn  modal-trigger\" href=\"#\">Trigger Modal<\/a>\n\t\t\t<div class=\"modal-container\" data-autoshow=\"1000\"  >\n\t\t\t\t\n\t\t\t<div class=\"modal-content\">\n\t\t\t\t<div class=\"boxed boxed--lg\">\n\t\t\t\t\t[vc_column_text]<\/p>\n<h2>Here is an autoshow modal<\/h2>\n<hr class=\"short\">\n<p class=\"lead\">Stack\u2019s 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.<\/p>\n<p>[\/vc_column_text]\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\n\t\t\t<\/div>\n\t\t<\/div><!--end of modal instance-->\n\t[\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033]<div class=\" boxed--lg bg--secondary  boxed boxed--border\" ><div class=\"container\">[vc_column_text]<\/p>\n<h4>Cookies Enabled Modal<\/h4>\n<p>Adding attribute <strong>data-cookie<\/strong> 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.<\/p>\n<p>The one-time modal is handy to alert users to a message which they can \u201caccept\u201d or \u201cagree\u201d to, such as an EU Cookies law notice, a promo\/sale or a newsletter signup offer.[\/vc_column_text]<\/div><\/div>[\/vc_column][vc_column width=\u201d1\/2\u2033][\/vc_column][\/vc_row][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033]<div class=\" boxed--lg bg--secondary  boxed boxed--border\" ><div class=\"container\">[vc_column_text]<\/p>\n<h4>Exit Modal<\/h4>\n<p>\u201cExit\u201d modals can be used to draw the user\u2019s attention to a promotion or any other alert when their mouse leaves a particular element on the page. Exit modals use the <strong>data-show-on-exit<\/strong> attribute to set a selector matching the element where the user\u2019s mouse must exit to show the modal. This means that you could set this selector to match your \u201cCheck Out\u201d 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\u2019s mouse leaves the browser window.[\/vc_column_text]<\/div><\/div>[\/vc_column][vc_column width=\u201d1\/2\u2033]<div class=\"element-to-exit boxed--lg bg--secondary  boxed boxed--border\" ><div class=\"container\">[vc_column_text]<\/p>\n<p>An \u201cexit modal\u201d will show immediately, each time your mouse leaves this box.<\/p>\n<p>[\/vc_column_text]<\/div><\/div>\n\t\t<div class=\"modal-instance \">\n\t\t\t<a class=\"btn  modal-trigger\" href=\"#\">Trigger Modal<\/a>\n\t\t\t<div class=\"modal-container\"   data-show-on-exit=\".element-to-exit\">\n\t\t\t\t\n\t\t\t<div class=\"modal-content\">\n\t\t\t\t<div class=\"boxed boxed--lg\">\n\t\t\t\t\t[vc_column_text]<\/p>\n<h2>This is an exit modal<\/h2>\n<hr class=\"short\">\n<p class=\"lead\">With Stack, you can easily configure modals to appear when your user\u2019s mouse leaves a specific element.<\/p>\n<p>[\/vc_column_text]\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\n\t\t\t<\/div>\n\t\t<\/div><!--end of modal instance-->\n\t[\/vc_column][\/vc_row][\/vc_section]<\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=\u201dstretch_row\u201d][vc_column][\/vc_column][\/vc_row][vc_section css=\u201d.vc_custom_1498220906182{padding-top: 0px !important;}\u201d][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033][vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJhbGVydCUyMGJnLS1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AlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlM0NkaXYlMjBjbGFzcyUzRCUyMmFsZXJ0X19jbG9zZSUyMiUzRSVDMyU5NyUzQyUyRmRpdiUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUzQyUyRmRpdiUzRQ==[\/vc_raw_html][vc_empty_space][\/vc_column][vc_column width=\u201d1\/2\u2033 el_class=\u201dxx\u201d][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033][\/vc_column][vc_column width=\u201d1\/2\u2033][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom: 30px !important;}\u201d][vc_column width=\u201d1\/2\u2033][\/vc_column][vc_column width=\u201d1\/2\u2033][\/vc_column][\/vc_row][vc_row css=\u201d.vc_custom_1485825445121{margin-bottom:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":"","footnotes":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P8yNrc-2H","_links":{"self":[{"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/pages\/167"}],"collection":[{"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/pages\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/radialcircle.com\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}