d-light-box
v0.2.2
Published
Derby.js lightbox component
Downloads
9
Readme
d-light-box
Very light lightbox for Derby.js.
Uses flexbox, so not totally compatible with every browser. Also expects http://fontawesome.io/ because of laziness.
May burn houses down etc. Improvements are welcome.
##Demo
https://derby-demos.herokuapp.com/d-light-box
##Install
npm install d-light-box
##Setup
app.component(require('d-light-box'))
@import 'node_modules/d-light-box'
##Usage
<d-light-box selector="#article img"></d-light-box>
This will apply the lightbox to the elements found by the selector
.