🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Knack is a simple, lightweight responsive jQuery gallery plugin for showcasing your favorite images in an elegant way.

Image-Slider image-gallery

Documentation

knack

JavaScript Image Gallery DEMO

#Installation

Add images + css file from knack/assets/stylesheets + knack.js library to your project;

#Usage

All you need to do is add div tag with 'projector' id and init it after loading page ended by jquery knack function. See example below.

<div class='place-for-projector'>   <div id='projector'></div> </div>  $(window).load(function(){   var images = [     /*['image-url', 'image-info']*/     ['assets/images/hot-rod-style.jpg', '2 hot-rod-style'],     ['assets/images/hot-rod-style.jpg']   ];        $('#projector').knack({data: images}); });

Enjoy!

Ruby on Rails gem knack-rails

If you have questions or found a bug? Tweet at me


You May Also Like