giotiskl / filterizr

:sparkles: Filterizr is a JavaScript library that sorts, shuffles and filters responsive galleries using CSS3 transitions :sparkles:
MIT License
648 stars 244 forks source link
css3-transitions filter filtering gallery image-gallery javascript-library jquery-plugin shuffle sort

Filterizr logo
Build Status NPM version NPM monthly downloads license badge

Description

Filterizr is a JavaScript library that sorts, shuffles, searches and applies stunning filters over responsive galleries using CSS3 transitions. Write your very own, custom effects in CSS and watch your gallery come to life!

It can also be used as a jQuery plugin.

Install

You can install Filterizr by downloading the minified version on its website/repo or through npm/yarn:

npm install filterizr

or

yarn add filterizr

Three files can be found in the ./dist/ directory:

Documentation & Tutorials

Basic usage

If you are building a simple static website and would like to use Filterizr via <script> tag make sure to download /dist/vanilla.filterizr.min.js and load it.

If you would like to use the jQuery variation then include /dist/jquery.filterizr.min.js in a <script> tag. Make sure to import it after jQuery itself.

If you are importing Filterizr from /node_modules, Filterizr's default export provide you with the vanilla JavaScript library:

import Filterizr from 'filterizr'

If you are using jQuery in that same project, also installed via npm and you would like to use Filterizr as a jQuery plugin then you can call the static method Filterizr.installAsJQueryPlugin, passing in the jQuery object as follows:

import $ from 'jquery';
import Filterizr from 'filterizr';

// This will extend the $.fn prototype with Filterizr
Filterizr.installAsJQueryPlugin($);

$('.filter-container').filterizr('filter', 5); // or any other Filterizr API call

Tutorials & Docs

You can find Filterizr's documentation as well as a series of tutorials on how to install and operate Filterizr on the Filterizr website. Here is a list of contents:

Contents:

Why Filterizr?

Contributing

If you would like to contribute to Filterizr, please make sure to follow the steps described:

Browser support

IE11 and all modern browsers.

Donate

Did you enjoy Filterizr? Filterizr is and will always be 100% free, if you would like to show your support feel free to donate:

License

Filterizr is licensed under the MIT License. Enjoy!