Introduction
The modal block allows you to hide content on your page and display it when a user clicks a link or a button. You can also set it to autoplay if you have an alert that the user needs to give attention to before reading the page.
Styles
Default
White background with a box shadow.
Border Bottom
UW Red underline on the bottom of the modal.
Options
Position
- Center (default) – Displays a modal in the center of the screen that takes up the majority of the screen width.
- Left – Displays a modal on the left third of the display. On a mobile device, it will take up the full width of the screen.
- Right – Displays a modal on the right third of the display. On a mobile device, it will take up the full width of the screen.
Open Button (text)
Specify the id(s) or url(s) of the button(s) that will open the modal. If there are multiple buttons, they can all use the same url, or you can specify multiple ids/urls by separating them with a comma and a space.
Autoplay (on/off)
Enable to display modal on page automatically without the user needing to push a button. Keep in mind, this can lead to a poor user experience. You should only use this feature if you have critical information on the page the user needs to give attention to.
- Autoplay Delay
Specify the number of seconds before the modal appears on the page. Default is 0 (will appear immediately on page load)
Enhance Modal Depth (on/off)
Blurs the background when the modal is open to emphasize modal content. Disable background blur to allow the user to read content behind the modal with a dim black overlay.