1.1.9 • Published 5 years ago

lb-effect-rand-opacity v1.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

lb-effects-rand-opacity

RandOpacity will periodically trigger an opacity animation on random nodes

Compatible with IE11+

install

npm i lb-effect-rand-opacity

Usage

import RandOpacity from "lb-effect-rand-opacity/dist/bundle.js"
...
const container = document.querySelector( ".container" );

const nodeList =  document.querySelector( ".target" );

const options = {
	frequency: 8,  ( 1 < frequency < 10 )
	duration: 2000, (animation duration in "ms")
	fadeTo: 0, (targets opacity 0 or 1, sets random opacity with no fade if not defined)
}

let animation = new RandOpacity( container, nodeList, options );
animation.start();
animation.pause()
1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.2

5 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago