This project allows the user to extend the elements on the web page (created for use with ‘textarea’ elements, but no reason why it cannot be used elsewhere) with a bounce animation.
It requires both jQuery and the jQuery Easing plugin (details can be found: http://plugins.jquery.com/project/Easing).
By selecting the elements and calling the ‘bounce’ function you will apply the default bounce functionality.
The default behaviour is to hide the elements and only display the clickable bar, although this can be changed either using the ‘open: true’ configuration parameter or by calling the ‘bounceOpen’ function.
Examples include:
$('textarea').bounce(); $('textarea').bounce({bottom: false, open: true}); $('textarea').bounce({bottom: false}).openBouncer(1);
You can specify multiple bounce elements by comma separating there numbers i.e. ‘openBouncer(1,2,5)’.
Further details can be found in the jquery.bounce.js header.
The layout is all controlled through CSS and you can change the default class used if necessary by changing the ‘bounceclass’ configuration option.
I first created this functionality with the mootools (http://www.mootools.net) javascript framework, however I techincally prefer to use the jQuery framework and so, here it is…
Enjoy!
My other projects include: Hover Image Text - http://plugins.jquery.com/project/HoverImageText TextArea Resizer - http://plugins.jquery.com/project/TextAreaResizer