Skip to content

schourode/jquery-grow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This simple jQuery plugin allows you to grow/scale/stretch any element in-place. In contrast to the jQuery UI scale effect, scaling an element using the grow() function will not cause any side effects to the positioning of other items on the page.

Usage

Well, it is painfully simple:

$('#willy').grow(1.5);

You just enlarged that thing by 50%, but how do you undo that?

$('#willy').grow(1);

Maybe you have a list of thumbnails and want to raise them on mouseover?

$('img').hover(
    function () { $(this).grow(1.2); },
    function () { $(this).grow(1.0); }
);

Use the second (optional) parameter if you wish to control the duration of the animation:

$('.explosion').grow(5, 'fast');
$('.tree').grow(2, 3000);

Examples

Try out this simple jQuery-grow() example on JS bin, where you can see and modify the sample live in your browser. For an example of the plugin used on a production site, try hovering the product thumbnails of Fritz Hansen's Series 7.

License

Dual licensed under the MIT or GPL Version 2 licenses:

About

jQuery.grow() plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published