$ cnpm install misan.blink
A script that changes the color of a letter or letters in text in a random way.
npm i misan.blink
or use GitHub source
<h1 class="blink-text">Your text to blink</h1>
<h1 id="blink-text">Your other text to blink</h1>
new Blink({
class: 'blink-text',
baseColor: '#00f',
blinkColor: '#f00',
interval: 5000
});
or
new Blink({
id: 'blink-text',
baseColor: '#00f',
blinkColor: '#f00',
interval: 5000
});
or
new Blink({
tag: 'h1',
baseColor: '#00f',
blinkColor: '#f00',
interval: 5000
});
tag
- element tag name for blinking - default null
id
- element id for blinking - default null
, used if tag
is nullclass
- element class for blinking - default null
, used if tag
and id
are nullbaseColor
- base of the text color - default null
, overwrite base colorblinkColor
- blinking of the text color - default null
interval
- the time between the change of the text color in ms
- default 1000
type
- can be use to change blinked letters to single words - default letters
, can take words
, letters
type
to change blinked letters to blinked wordsspace
from random charsCopyright 2014 - 2016 © taobao.org |