Skip to content

k-components/k-light-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k-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/k-light-box

##Install

npm install k-light-box

##Setup

app.component(require('k-light-box'))
@import 'node_modules/k-light-box'

##Usage

<k-light-box selector="#article img"></k-light-box>

This will apply the lightbox to the elements found by the selector.

License

MIT