🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

fade-svg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fade-svg

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

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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.

Keywords

random

FAQs

Package last updated on 07 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts