Skip to content

This is a mootools plugin which allows to generate an interactive gallery of images. Given the thumbs and full images paths it creates a table structure gallery (autosized) inside a given container with tips and lightbox effect when clicking over an image

abidibo/moogallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moogallery

Screenshot

moogallery creates an interactive gallery of images, videos and audios. Given the thumbs paths and some information, the thumbs are loaded sequentially and inserted in a table structure automatically sized according to the size of the container, then events are added in order to manage tips, lightbox widget (and navigation through media) and show media' meta information. Videos can be hosted on youtube or vimeo, audio files are inserted following html5 specifications. If used with cpoyer's mootools-mobile (https://github.com/cpojer/mootools-mobile) supports swipe gestures on mobile (android, ios) to change media in the lightbox view.

How to use

moogallery requires

  • core/1.4.4

Include mootools framework and moopopup plugin (include also mootools-mobile to add support for swipe events)

<script src="path-to-mootools-framework" type="text/javascript"></script>
<script src="path-to-moogallery-js" type="text/javascript"></script>

Include moogallery stylesheet

<link href="path-to-moogallery-css" type="text/css" rel="stylesheet" />

Example code

Javascript:

window.addEvent('domready', function() {
	var mg_instance = new moogallery('mycontainer', [
		{
			thumb: 'http://my/thumb/path', 
			img: 'http://my/img/path', 
			title: 'image title', 
			description: 'image description'
			credits: 'image credits'
		},
		{
			thumb: 'http://my/thumb/path2', 
			youtube: 'youtube_video_code',
			video_width: 640,
			video_height: 400, 
			title: 'youtube video title', 
			description: 'youtube video description'
			credits: 'youtube video credits'
		},
		{
			thumb: 'http://my/thumb/path3', 
			vimeo: 'vimeo_video_code',
			video_width: 640,
			video_height: 400, 
			title: 'vimeo video title', 
			description: 'vimeo video description'
			credits: 'vimeo video credits'
		},
		{
			thumb: 'http://my/thumb/path4', 
			mpeg: 'path/to/mpeg/file',
			ogg: 'path/to/ogg/file',
			title: 'audio title', 
			description: 'audio description'
			credits: 'audio credits'
		}
		// ...
	]);
}

For more demos please visit the moogallery demo page at http://www.abidibo.net/projects/js/moogallery/demo

Screenshots

Screenshot Screenshot

Links

The project page: http://www.abidibo.net/projects/js/moogallery
The documentation page: http://www.abidibo.net/projects/js/moogallery/doc
The demo page: http://www.abidibo.net/projects/js/moogallery/demo

Please report bugs, errors and advices in the github project page: http://github.com/abidibo/moogallery

About

This is a mootools plugin which allows to generate an interactive gallery of images. Given the thumbs and full images paths it creates a table structure gallery (autosized) inside a given container with tips and lightbox effect when clicking over an image

Resources

Stars

Watchers

Forks

Packages

No packages published