This is a jQuery plugin for laying out a dynamic grid of elements.
See the documentation page for examples. The repository also includes a working example. All images used in the example are copyrighted by their respective owners and only included for showcasing plugin functionality..
- jQuery - 1.4.3 or better
Copy jquery.wookmark.js
to your javascript folder.
The plugin can be called with jQuery in different ways.
$('.myElements').wookmark();
Where myElement
is the class of the items you want to lay out in a grid.
$('.myElements').wookmark({
container: $('#myContent'),
offset: 5,
itemWidth: 200,
autoResize: true
});
See the documentation page for details on available options.
Please send me an email with any feedback you have or contact me on twitter @gbks.
Contribute!