misan.blink
A script that changes the color of a letter or letters in text in a random way.
Last updated 4 months ago by tsume_ms .
ISC · Original npm · Tarball · package.json
$ cnpm install misan.blink 
SYNC missed versions from official npm registry.

MIS@N Blink

A script that changes the color of a letter or letters in text in a random way.

Instalation

npm i misan.blink

or use GitHub source

Usage

<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
});

Properties

  • tag - element tag name for blinking - default null
  • id - element id for blinking - default null, used if tag is null
  • class - element class for blinking - default null, used if tag and id are null
  • baseColor - base of the text color - default null, overwrite base color
  • blinkColor - 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

Change log

  • 23/09/2020 - remove jquery from dependencies
  • 24/05/2019
    • add html tags to select
    • add property type to change blinked letters to blinked words
  • 29/04/2019 - removed space from random chars
  • 27/04/2019 version 0.1.0

Current Tags

  • 0.3.1                                ...           latest (4 months ago)

3 Versions

  • 0.3.1                                ...           4 months ago
  • 0.2.1                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |