Reveal

Reveal

Modal dialogs, or pop-up windows, are handy for prototyping and production. Foundation includes Reveal our jQuery modal plugin, to make this easy for you.

Reveal modals are easy to build, just make sure they live right above your closing body tag or they won’t work properly.

Example modal...

This is a modal.

Reveal makes these very easy to summon and dismiss. The close button is simply an anchor with a unicode character icon and a class of close-reveal-modal. Clicking anywhere outside the modal will also dismiss it.

Finally, if your modal summons another Reveal modal, the plugin will handle that for you gracefully.

Secon Modal

×

Example Modal w/Video...

This modal has video

×

tiny: Set the width to 30%.

small: Set the width to 40%.

medium: Set the width to 60%.

large: Set the width to 70%.

xlarge: Set the width to 95%.

Firing a Reveal Modal

To launch a modal, just add a data-reveal-id to the object which you want to fire the modal when clicked. The data-reveal-id needs to match the id of your reveal.