/* -------------------------------------------------------------------
*
* Author: Blupixel IT Srl
* Last Modifcation Date: 12nd June 2012
* Website: www.blupixelit.eu
* support at: webmaster@blupixelit.eu
*
* Copyright (c) 2012 Blupixel IT Srl - Trento (Italy)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* ----------------------------------------------------------------- */
bITResize has been created by Blupixel IT Srl and is realeased under
the GPL License.
bITResize provide a function that if applied to one or more a tag
containing images, it converts them in sliding animated button.
It Requires jQuery!
How To Use:
Unpack it and copy the folder in some path of the website.
Then Include the scripts jquery and bITAnimateButton in the header of the page.
Example:
Start from a code like this:
Then activate it calling the function on the selected tag a containing the image:
- simply call the function name:
$('#mybutton').bITAnimateButton();
- or use additional params:
$('#mybutton').bITAnimateButton({direction: 'top', initialHeight: 30});
Example:
Possible Parameters are:
- initialHeight: number
is the initial height in pixel to show of the image in case of
direction 'top' or 'bottom'
- initialWidth: number
is the initial width in pixel to show of the image in case of
direction 'left' or 'right'
- direction: 'top' | 'left' | 'right' | 'bottom'
is the direction fo the sliding effect
- initialBorderColor: color
is the color of the line used to make images to slide from
- initialBorderWidth: number
is the width of the line used to make images to slide from
- animationSpeed: number
is the number of millisecond to use to complete the slide effect