jQuery filter for all purposes.

Overview

jQuery EasyFilter

The easiest way to filter anything!

How to use

1. Include jQuery (ignore this if you have already included on the page).

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>

2. Include jQuery EasyFilter plugin.

<script src="./js/jquery.easyFilter.min.js" type="text/javascript"></script>

3. Create the markup, you will need a container where you will put elements with data-easyfilter attribute that have the Click Listener Event and elements with data-easyitem attribute that will be filtered.

<div id="easy-filter-wrap">
     <button type="button "data-easyfilter="*"> All </button>
     <button type="button "data-easyfilter="item01"> Item 01 </button>
     <button type="button "data-easyfilter="item02"> Item 02 </button>
     <button type="button "data-easyfilter="item03"> Item 03 </button>
     <br /> <br />
     <div data-easyitem="item01"> Item 01 </div>
     <div data-easyitem="item02"> Item 02 </div>
     <div data-easyitem="item03"> Item 03 </div>
</div>

4. Initialize the EasyFilter plugin.

<script>
     $('#easy-filter-wrap').easyFilter();
</script>

Options

$('#easy-filter-wrap').easyFilter({
    firstFilter: '*',
    animation: 'slide',
    duration: 400
});
Option Type Description
firstFilter string Default: '*'.
Controls the first elements to show.
animation string Default: 'slide'.
Select the animation.
Values: 'slide' | 'fade'
duration int | string Default: 400.
Controls the animation duration.
Values: 'slow' | 'normal' | 'fast' | Any integer

License

MIT License

You might also like...

Filter sale 1K gần bạn

Filter sale 1K gần bạn Tại sao lại có cái này? Đôi khi bạn sẽ nhận được (hoặc săn được) voucher freeship đơn 0đ của shopee (10k hoặc 25k), và phí ship

Nov 25, 2022

Search/Filter beer for beerpong

Search/Filter beer for beerpong

Beer for Beerpong 🍺 You can search beer to play beer pong 🍻 🏓 You sink it, they drink it LINK Technologies 🚀 React React Router Dom Beer Animation

Feb 24, 2022

A javascript plugin to filter elements from a "masonry" grid.

Isolde Isolde is a lightweight, flexible, and responsive javascript plugin allow you to filter elements from a "masonry" grid. Quick start Install Thi

Oct 13, 2022

Providing a complete list of Kurdish (ckb) Alphabet for developing purposes

Providing complete information on Arabic-based Kurdish Alphabets (CKB) Kurdish Alphabet Arabic-based Kurdish Characters Character Unicode Code Point N

Aug 6, 2022

This is a little script that shows how to ddos a website. This is for example purposes only. Don't ddos a website without the consent of his owner

Dddos-Script This is a little script to ddos a website. This is for example purposes only. I am not responsable of what you do with it If you like thi

Dec 17, 2022

A modern, clean design can be customized and applied for a wide range of purposes

Gatsby starter for projects portfolio with Flotiq source Kick off your project with this hello-world boilerplate. This starter ships with the main Gat

Oct 4, 2022

An exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes.

Stupid Database This is an exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes. None of this co

Dec 20, 2022

A simple NFT trading and breeding platform for demonstration purposes.

A simple NFT trading and breeding platform for demonstration purposes.

📦 boxyz I know it sounds strange, but maybe these boxes can breed and have children. They can be sold as well. boxyz is a fun project to trade and br

Dec 12, 2022

Elven Tools Dapp - Elrond blockckchain frontend dapp demo. Primarily for NFT minting, but it can be used for other purposes.

Elven Tools Dapp Docs: elven.tools/docs/landing-page.html Demo: dapp-demo.elven.tools Sneak peek: youtu.be/ATSxD3mD4dc The Dapp is built using Nextjs

Jan 1, 2023
Releases(v1.0.1)
Owner
Rafael F. da Silva
Full-stack developer since 2014. Extensive background working on web projects. Possess a degree in Analysis and Systems Development with a
Rafael F. da Silva
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
List all browsers compat data from MDN and filter with browserlist.

mdn-compat-browserlist List all browsers compat data from MDN and filter with browserlist. Features Support filter all browserlist queries List all br

SerKo 2 Apr 17, 2022
💻 Countries Web is a web application that lets you view data for all the countries in the world and filter them by country name and continent.

?? Countries Web View Demo This is the Countries Web, a web application that lets you view data for all the countries in the world and filter them by

João Gabriel 5 Jun 23, 2022
Easy view and filter all follows and following. Auto update by GitHub Action.

?? List All Followers And Following Easy view and filter all follows and following. Auto update by GitHub Action. Since GitHub's default follows and f

Yuri 10 Dec 28, 2022
JS Irontable - A responsive Jquery Table for multiple purposes

JSIronTable JS IronTable - A responsive Jquery Table for multiple purposes This table provides a responsive JQuery table which includes: Column Sortin

Raftopoulos Yannis 1 May 26, 2021
Kalman Filter in Javascript

Kalman Kalman filter for Javascript. Dependencies The module requires a sylvester.js (https://github.com/jcoglan/sylvester) compatible matrix and vect

Itamar Weiss 113 Dec 19, 2022
A simple Todo App with check complete function and filter todo. Made with React and TypeScript.

A simple Todo App with check complete function and filter todo. Made with React and TypeScript. The app can Add, Delete and Edit todo. Todo can be sorted by Complete or Active.

Bao Nguyen 9 Dec 6, 2022