Modal example

Simple modal

A simple modal with no special features. Closes when clicked outside.

Live content update

Opens a modal and updates it after 2 seconds by changing the content and removing the footer. After 2 more seconds, a button is inserted into the footer.

Loading animation

A simple modal that starts a loading animation after 2 seconds. The animation lasts 3 seconds, while the modal content is updated. After the animation finishes, the new content is displayed.

A menu inside a modal

A modal having some options. Each option is a button, having a javascript function attached to the click event.

Github page sources:

Find mode details about this page on the GitHub Wiki Page.