An open API service indexing awesome lists of open source software.

https://github.com/freaktechnik/minimal-overlay

A minimalistic js-based overlay with accessibility in mind
https://github.com/freaktechnik/minimal-overlay

Last synced: over 1 year ago
JSON representation

A minimalistic js-based overlay with accessibility in mind

Awesome Lists containing this project

README

          

minimal-overlay
==============
Simple overlay is a minimal script (plus styles) to create an accessible overlay.
The only implemented control is closing the overlay by pressing `Esc` on the
keyboard.

License
-------
See the [LICENSE](LICENSE) file.

Installation
-----------
You can install this package using `bower install minimal-overlay --save`.

Usage
-----
The script creates a global `Overlay` constructor with the following interface:
- `isShowing`: Attribute indicating, whether the overlay is currently visible
- `show()`: method to display the overlay
- `hide()`: method to hide the overlay
- `show` Event: fired on the overlay whenever it is shown
- `hide` Event: fired on the overlay whenever it is hidden

Example
-------
See the [index.html](index.html) for a practical example.