svg-filtered

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
s

svg-filtered

A plugin that allows for generated filters on images using svg filters

0.3.3
latest
72

Supply Chain Security

100

Vulnerability

83

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Issues
2

SVG Filtered

Filter html elements by using svg filters on them.

filterify

Installation

$ npm install svg-filtered

Also you can just use the file dist/filtered.js and it will export out a global filtered variable.

Usage

filtered[ {name-of-filter} ]( selector[, options ]);

<img class="inversed-image" src="/cat.gif" alt="cats foo" />
<script src="path-to/filtered.js"></script>
<script>
    filtered.inverse( '.inversed-image' );
</script>

Right now there is only three filters ( more coming soon ), or help build one its easy!

  • inverse
  • blur - you can set the deviation
  • colorFlood - you can set the color to use

This works with browserify

var filtered = require( 'filtered' );

filtered.colorFlood( '.color-me', {
    color: 'tomato'
});

Current Browser Support

  • Chrome latest
  • Firefox latest
  • Chrome for Android

looking to support

  • IE 10,11
  • Safari 6
  • Safari IOS

FAQs

Package last updated on 16 Nov 2014

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