Simple Usage
Single Images
<a class='nch-lightbox' href='1.jpg'><img src='thumbs/1.jpg' style='height:160px'></a>
Galleries
Create one by setting the 'rel' attribute to the same value.
<a class='nch-lightbox' rel='g1' href='1.jpg'><img src='thumbs/1.jpg' style='height:160px'></a>
<a class='nch-lightbox' rel='g1' href='2.jpg'><img src='thumbs/2.jpg' style='height:160px'></a>
Videos
Just copy and paste the video url from Youtube or Vimeo and you're ready to go.
<a class='nch-lightbox' href='http://www.youtube.com/watch?v=JByDbPn6A1o'>Youtube</a>
<a class='nch-lightbox' href='http://vimeo.com/62092214'>Vimeo</a>
<a class="nch-lightbox" href="http://www.dailymotion.com/video/x11xzns_onerepublic...">Dailymotion</a>
Iframes
Just use the page url, and the lightbox will figure itself the rest. You can set the size, or let the iframe fill all the available space.
Codecanyon Iframe
<a class='nch-lightbox' href='http://codecanyon.net' data-width='1080' data-height='540'>Codecanyon Iframe</a>
Inline HTML
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Notice how the paragraph automatically adapts to the viewport without having a fixed width.
<p id='inline'>Some text goes here...</p>
<a class='nch-lightbox' href='#inline'>Inline HTML</a>
AJAX
You can even load up custom controls using AJAX.
<a class='nch-lightbox' href='showcase/ajax.html' >AJAX</a>
Showcase with fluid grid(plugin included)
Resize the page to see it in action.
These images are used for presentation purposes only and their content is not present in the
download package. This UI kit is a free product and you can download the PSD file for
free from CSSAuthor.
Project details
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Big callout button
<!-- project details, use the id with the info option -->
<div id='project-info' class='nacho-lightbox-info'>
<h3>Project information</h3>
Details here ...
<a class='nacho-lightbox-button' href='Big button'></a>
</div>
<a class='nch-lightbox' rel='project' href='1.jpg#bg2FFC8B'><img width='280' src='thumbs/1.jpg'></a>
<a class='nch-lightbox' rel='project' href='2.jpg#bgD27FFF'><img width='280' src='thumbs/2.jpg'></a>
<!-- more images here-->
<!-- set the options on the last item -->
<a class='nch-lightbox' rel='project' href='8.jpg#bg2FFC8B' data-thumbs='bottom' data-info='project-info' data-grid='320,640,920' data-thumbs='top'><img width='280' src='thumbs/8.jpg'></a>