Skip to content

This plugin, developed in jQuery, creates the grid of the image and run of the two animations choosen by the user: fadeIn and fadeOut

Notifications You must be signed in to change notification settings

carloVentrella/GridImageAnimation

Repository files navigation

GridImageAnimations

This plugin, developed in jQuery, creates the grid of the image and run the animation chosen by the user: fadeIn and fadeOut. It is completely configurable, users can choose the size of the cells of the grid, the speed of the animations, the type of animations etc.

Demo

Just download it and open demo.hml

Files required

Installation

Just call the plugin with an image and set some parameters:

	var grid = img.gridImageAnimation({ 'mode' : 'fadeIn', 
	                                    'cell' : 15 , 
	                                    'speed' : 70, 
	                                    'durationFading' : 200,
	                                    'previewBox' : null,
	                                     complete : null
	                                  });
  • mode : fadeIn() or fadeOut(). In the first one the image appears, in the second one (obvioulsy) it scompares;
  • cell : default is 15, this means that width and height are divided in 15 parts; A value too little will create disturbs;
  • speed : is the delay between the animation of a cell and another one;
  • durationFading : is the time that cells take to compare/scompare;
  • previewBox : it's the element where the user want to animate the image. If it's null the grid will replace the original image;
  • complete : is the function that will be run when the animation ends;

Inheritance

If the original image as an id and/or class/es they will be inherited by the grid.

You can read also the article on my personal blog (italian) : http://www.ketek.it/demo/gridImageAnimation/demo.html

About

This plugin, developed in jQuery, creates the grid of the image and run of the two animations choosen by the user: fadeIn and fadeOut

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published