Skip to content

mikenicklas/lookbook.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lookbook.js

A simple jQuery plugin to create interactive lookbooks.

Dependencies

  1. jQuery
  2. Bootstrap CSS and JavaScript for popovers

Screenshot

alt text

Usage

Add an image to the page with a JSON string of the various focal points of the image:

<img src="https://unsplash.it/1000/1000/?image=856" data-lookbook-points='[{"posX":617,"posY":321,"title":"White Shirt","description":"White shirts lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquam elit ut ipsum volutpa."},{"posX":800,"posY":650,"title":"Pocket Square","description":"Pocket squares lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquam elit ut ipsum volutpa."}]' class="lookbook" alt="Some Image">

Initialize the jQuery lookbook plugin:

$(document).ready(function() {
    $('.lookbook').lookbook();
 });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published