Skip to content

annrra/expandGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

expandGallery

A responsive gallery grid layout with drop-down expandable content

How to use it

1 Requires jQuery
2 Include js/jquery.expandgrid.js 3 Include CSS - css/main.css
4 Create compatible markup
5 Initialize at the bottom of the page

Example markup

<div class="wrapGrid">
	<div class="imgBlock" data-title="Image Title" data-desc="Description text ...">
		<span><img class="imgGridItem" src="..." /></span>
	</div>
</div

Call the plugin on 'wrapGrid' element.

$(".wrapGrid").expandGrid();

// custom settings
$(".wrapGrid").expandGrid({
	animationSpeedOpen: 300, // Set animation slideDown speed 
	animationSpeedClose: 200, // Set animation slideUp speed
	imageGridMaxHeight: 200 // Set max-height for thumbnail images
});

About

Expandable gallery with thumbnail grid layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published