Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 509 Bytes

Readme.md

File metadata and controls

40 lines (24 loc) · 509 Bytes

Overlay

A simple overlay for Yuehu.

Showcase at http://yuehu.github.io/overlay/.

Installation

Install with component(1):

$ component install yuehu/overlay

API

var Overlay = require('overlay');
var o = new Overlay();

.show()

Show overlay.

.hide()

Hide overlay.

.fill(el)

Fill element to the overlay container.

var el = document.createElement('div');
el.innerHTML = 'This is overlay content';
overlay.fill(el);

License

MIT