modal.cssdeprecated

A simple css foundation when creating modals

Usage no npm install needed!

<script type="module">
  import modalCss from 'https://cdn.skypack.dev/modal.css';
</script>

README

modal.css

A simple css foundation when creating modals

Purpose

This CSS acts as a foundation when creating modals, or lightboxes. The styles only positions the elements. Override as you like to add your own flavour!

Usage

You can either install this package from npm by running npm install modal.css, or just copy the contents of index.css.

Viewing example files

Example markup is provided in the example files. Run npm install && npm run build to bundle the css before viewing those.