Skip to content

Lightweight and customizable jQuery plugin for creating pinterest like responsive grid layout

License

Notifications You must be signed in to change notification settings

cfconsultancy/Pinto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinto jQuery Grid Layout Plugin (v1.0.0)

preview

Features

  • lightweight (the minified version is under 1KB)
  • autosize support
  • fluid item width
  • animation (CSS3 transition)

==========

ABOUT

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.

HOW TO USE

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;

DEMO

Download repository and view the demo folder with an example.

LICENSE

Released under the MIT License


Copyright ©️ 2015 Max Lawrence

About

Lightweight and customizable jQuery plugin for creating pinterest like responsive grid layout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published