- lightweight (the minified version is under 1KB)
- autosize support
- fluid item width
- animation (CSS3 transition)
==========
Pinto.js is a lightweight and customizable jQuery plugin for creating pinterest like responsive grid layout. Pinto.js is intended for easy use and is fully deployable within minutes. The minified version is under 1KB.
Pinto.js was built with quick and simple customization in mind. You can easily customize the entire experience by initializing with arguments.
Example:
<script type="text/javascript">
$('#container').pinto();
</script>Example:
<script type="text/javascript">
$('#container').pinto({
itemSelector: '.block',
itemWidth: 200,
marginX: 10,
marginY: 10,
align: 'center',
fitWidth: false,
animate: true,
autoResize: true,
resizeDelay: 50
});
</script>Default options:
itemSelector: '> div', // block identificator;
itemWidth: 220, // width of one grid block in pixels;
marginX: 10, // width spacing between blocks in pixels;
marginY: 10, // height spacing between blocks in pixels;
align: 'left', // blocks alignment - 'left', 'right' or 'center';
fitWidth: true, // adjusts block width to create optimal layout based on container size;
animate: true, // CSS animation when updating layout;
autoResize: true, // updates layout after browser is resized;
resizeDelay: 50 // time in milliseconds between browser resize and layout update;Download repository and view the demo folder with an example.
Released under the MIT License
Copyright ©️ 2015 Max Lawrence
