0.1.1 • Published 5 years ago

fade-svg v0.1.1

Weekly downloads
6
License
SEE LICENSE IN LI...
Repository
gitlab
Last release
5 years ago

fade-svg

Function to randomly fade elements from a given selector of an svg

Usage

import fadeSVG from 'fade-svg'

const mySvg = document.querySelector('svg')

fadeSVG({ svg: svg, selector: 'polygon' }) // will randomly fade-in all polygons inside the svg

Note: your svg MUST be inline. You can't have a img tag with an svg source.

Just npm install fade-svg and then you can import it in your code.

0.1.1

5 years ago

0.1.0

5 years ago