lightning-vi
v1.0.3
Published
lightning
Downloads
2
Readme
lightning
npm i lightning-vi --save
import Lightning from 'lightning-vi'
new Lightning(document.querySelector("selector"))
or with options
const options = {
sectionCount: 30, // count of curve parts
color: "#ff0000", // line color
lineWidth: 4, // width of main line
offset: 5, // top & bottom paddings
speed: 0.17, // speed to change curves
bloom: 4, // blur radius
bloomColor: "#ffe6e6", // bloom color
bloomWidth: 12, // bloom line width
levels: 7, // independent parts of the curve
}
new Lightning(document.querySelector("selector"), options)