component / overlay

Page overlay component

Home Page:http://component.github.io/overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overlay

Page overlay component.

Installation

$ component install component/overlay

API

overlay([options|element])

Returns a new Overlay.

Options:

  • closable: whether or not a user may click the overlay to close [false]
  • target: target element to overlay [body]

Overlay#show()

Show the overlay.

Overlay#hide()

Hide the overlay.

Events

  • show when the overlay is shown
  • hide when the overlay is hidden
  • close when the overlay is removed (follows hide normally)

License

MIT

About

Page overlay component

http://component.github.io/overlay


Languages

Language:JavaScript 57.8%Language:HTML 25.9%Language:CSS 10.4%Language:Makefile 5.8%