0.1.1 • Published 5 years ago

banner-expandable v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

EXPANDABLE BANNER

Description

A simple banner that extends when you hover the mouse over it and shrink when the mouse exits.

Installation

npm i banner-expandable

Usage

import myBannerExpand from 'banner-expandable';
let banner = myBannerExpand("banner", ["small-img", "big-img"]);

constructor(divId, ressources, options=null)

NameValueRequireTypeDescription
divId"bannerDivId"yesstringThe name of the div ID where the banner will be show
ressources"small-img", "big-img"yesarrayAn array containing the two images displayed on the banner
options{"option1": true}noobjectSome options to customize the module

List of differents options :

OptionValueDescriptionDefault
elasticbooleanIf the banner will extends with 'elastic' effect on itfalse
duration-animationnumberThe duration of the animation (in second)1
0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago