<!-- Add jQuery and Filterizr -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/filterizr/1.3.4/jquery.filterizr.min.js"></script>
<script>
$(function () {
$('.filter').filterizr({
option
});
});
</script>
<ul class="nav">
<li data-filter="all"> All </li>
<li data-filter="1"> 1 </li>
<li data-filter="2"> 2 </li>
...
</ul>
<ul class="nav">
<div class="filter">
<div class="filtr-item" data-category="1" data-sort="100">...</div>
...
</div>
Property | Type | Default | Description |
---|---|---|---|
animationDuration | Number | 0.5 | The duration of CSS3 transitions, taking place for your effects. |
callbacks | Used as the namespace for your callbacks. | ||
onFilteringStart | function | function() { } | This event is thrown in the filter method to indicate that filtering has started. |
onFilteringEnd | function | function() { } | This event is thrown in the filter method to indicate that filtering has ended. |
onShufflingStart | function | function() { } | This event is thrown in the shuffle method to indicate that shuffling has begun. |
onShufflingEnd | function | function() { } | This event is thrown to indicate that shuffling has ended. |
onSortingStart | function | function() { } | This event is thrown in the sort method to indicate that sorting has begun. |
onSortingEnd | function | function() { } | This event is thrown to indicate that sorting has ended. |
controlsSelector | String | '' | In case there is the need to have more than one Filterizr instance on the same page then you need to set up different controls for them. This is where this option comes in handy. |
delay | Number | 0 | Measured in milliseconds and used to set the value of the transition-delay property of every item. The value of the transition-delay is incremented progressively by the value of delay for every item to create a more progressive version of your effect. |
delayMode | String | 'progressive' | Determines how delay is applied to the transition between items. The two possible values are progressive and alternate. The value of delayMode makes no difference if delay is 0. |
easing | String | 'ease-out' | The easing algorithm used for CSS3 transitions. Look up the CSS3 transition-timing-function property for possible values. |
filter | String | 'all' | The default value can be used for an unfiltered gallery. To initialize a filtered gallery, set this property to your category of choice before instantiating Filterizr. |
filterOutCss | An object with CSS properties, written the same way you would write it for jQuery's .css() function. This the transition that plays when your items are being filtered out. | ||
opacity | Number | 0 | |
transform | String | 'scale(0.5)' | |
filterInCss | An object with CSS properties, written the same way you would write it for jQuery's .css() function. This the transition that plays when your items are being filtered in. | ||
opacity | Number | 0 | |
transform | String | 'scale(1)' | |
layout | String | 'sameSize' | By default sets the layout for items with same width and height. Other possible values are: 'packed' for a layout of items of varying width and height, 'sameWidth' for a layout of items with the same width but varying height. 'sameHeight' for a layout of items with the same height but varying width. 'horizontal' for a layout of items laid out horizontally. 'vertical' for a layout of items laid out vertically. To see a demo of each and every layout, check the Tutorials section. |
multifilterLogicalOperator | String | 'or' | This option defines the logic in which multifiltering will be applied in case it's enabled. If set to 'or' then it will render all items that belong to one of the active categories e.g. 3 or 4. If set to 'and' then it will render all items that belong to both categories i.e. 3 and 4. |
selector | String | '.filtr-container' | The selector of the container used for your gallery. |
setupControls | Boolean | true | If set to true then Filterizr will try to detect and set up filtering, shuffling and sorting controls. In case you have multiple Filterizrs in your view, you might decide to set this to false and set up your own controls, using the public API, so as to avoid interference the controls of your Filterizrs. |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Add jQuery and Filterizr -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/filterizr/1.3.4/jquery.filterizr.min.js"></script>
<title>Filterizr #1. Basic Filtering</title>
<style>
.wrapper {
max-width: 500px;
}
.nav {
display: flex;
margin: 15px 0;
padding: 0;
}
.nav li {
font-size: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 80px;
margin: 3px;
padding: 5px 0;
list-style: none;
cursor: pointer;
transition: all .5s;
color: #fff;
border-radius: 5px;
background-color: hsl(174, 100%, 29%);
}
.nav li:hover {
background-color: hsl(174, 100%, 35%);
}
.nav strong {
width: 120px;
}
[class^='box-'],
[class*='box-'] {
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100px;
height: 100px;
color: #fff;
box-shadow: 0 0 0 2px #f1f1f1 inset;
}
.box-green {
background: green;
}
.box-orange {
background: orange;
}
.box-purple {
background: purple;
}
</style>
</head>
<body>
<header>
<h1 class="dlw-title">Filterizr <small>#1. Basic Filtering</small></h1>
<p class="dlw-description">Filterizr is a jQuery plugin that sorts, shuffles, searches for the items in the container.
<br>This is a basic sample without setting options.</p>
</header>
<section>
<h2 class="dlw-subtitle">[1] Basic Filtering</h2>
<p>Filter according to the value of the data attribute.</p>
<script>
$(function () {
$('.filter').filterizr();
});
</script>
<ul class="nav">
<strong>Single Filtering:</strong>
<!-- Filter by referring to "data-category" of items with the value of "data-filter". -->
<li data-filter="all"> All </li>
<li data-filter="1"> Green </li>
<li data-filter="2"> Orange </li>
<li data-filter="3"> Purple </li>
</ul>
<ul class="nav">
<!-- Multi Filter by referring to "data-category" of items with the value of "data-fmultifilter". -->
<strong>Multi Filtering:</strong>
<li data-multifilter="1"> Green </li>
<li data-multifilter="2"> Orange </li>
<li data-multifilter="3"> Purple </li>
</ul>
<ul class="nav">
<!-- Sort by the value of "data-sort" of items. -->
<strong>Sorting:</strong>
<li data-sortasc>Asc</li>
<li data-sortdesc>Desc</li>
</ul>
<div class="nav">
<strong>Search:</strong>
<!-- Search for item text with input value with "data-search" added. -->
<input type="text" name="search" placeholder="Search..." data-search>
</div>
<div class="wrapper">
<div class="filter">
<div class="filtr-item box-orange" data-category="2" data-sort="8363710">
New York
</div>
<div class="filtr-item box-green" data-category="1" data-sort="3833995">
Los Angeles
</div>
<div class="filtr-item box-purple" data-category="3" data-sort="2853114">
Chicago
</div>
<div class="filtr-item box-green" data-category="1" data-sort="2242193">
Houston
</div>
<div class="filtr-item box-purple" data-category="3" data-sort="1567924">
Phoenix
</div>
<div class="filtr-item box-purple" data-category="3" data-sort="1447395">
Philadelphia
</div>
<div class="filtr-item box-orange" data-category="2" data-sort="1351305">
San Antonio
</div>
<div class="filtr-item box-green" data-category="1" data-sort="1279910">
Dallas
</div>
<div class="filtr-item box-orange" data-category="2" data-sort="1279329">
San Diego
</div>
<div class="filtr-item box-green" data-category="1" data-sort="948279">
San Jose
</div>
</div>
</div>
</section>
</body>
</html>
Here, design samples of various effects to text are posted.
The headline is the text indicating the nature of the article below it.
Here, design samples of headline using style sheets are posted.
The HTML <ol> element represents an ordered list of items.
Here, design samples of ol using style sheets are posted.
The HTML <hr> element represents a thematic break between paragraph-level elements.
Here, design samples of hr using style sheets are posted.
The box-shadow CSS property is used to add shadow effects around an element's frame.
Here, design samples of box-shadow property using style sheets are posted.
Using
In this example, Picturefill is added for IE.
Grid is the value of the CSS display property.
Here, layout samples of grid property are posted.
Flex is the value of the CSS display property.
It is a standard button design of Bootstrap Framework.
Hover.css is a style-sheet collection of hover effects.
Button.css is collection of CSS3 button animations.
It is a standard Card design of Bootstrap Framework.
Arctext.js is a jQuery plugin that causes a string to curve along a specified circle radius.
Lettering.js is a jQuery plugin that encloses a specified character string with one character, one word, one column by <span> tag.
Textillate.js is a jQuery plugin that adds In / Out animation effects to text.
FitText.js is jQuery plugin that fits the font size according to the width of the parent element.
FeedEk is a jQuery plugin that parses RSS and Atom feeds and displays them.
Introduction of various embedment methods of YouTube.
FitVids is a jQuery plug-in that converts YouTube videos embedded with iframe into responsive.
xZoom is a jQuery plug-in that shows a zoom preview of the image.
It is possible to customize the preview position and zoom.
Instagram.css is a stylesheet set that filters photos like instagram.
Moment.js is a javascript that processes and displays date and time.
Bootstrap Material DatePicker is jQuery data picker plugin using Moment.js.
Multifilter is jQuery Table Filtering Plugin.
Responsive table using "display: flex;".
Not supported for rowspan.
Responsive table using "display: grid;".
Not supported for rowspan.
It is a standard Table design of Bootstrap Framework.
jQuery Mask Plugin is jQuery plugin that make mask (validation) on form field.
Select2 is a jquery plugin that makes select form more advanced.
Here is the basic usage of Select2.
jQuery Searcher is jQuery search/filtering plugin that supports various markups.
It is a standard Carousel of Bootstrap Framework.
FlexSlider is responsive jQuery slider plugin.
Here, basic single slider setting of Flexslider are posted.
FlexSlider is responsive jQuery slider plugin.
Here, basic carousel slider setting of Flexslider are posted.
slick is responsive jQuery slider plugin.
Here, basic single slider setting of slick are posted.
slick is responsive jQuery slider plugin.
Here, carousel slider setting of slick are posted.
fancyBox is jQuery lightbox plugin.
Here, basic image lightbox setting of fancyBox are posted.
fancyBox is jQuery lightbox plugin.
Here, YouTube, Vimeo, Instagram, Google Maps, inline HTML, iframe lightbox setting of fancyBox are posted.
Magnific Popup is jQuery lightbox plugin.
Here, basic image lightbox setting of Magnific Popup are posted.
Magnific Popup is jQuery lightbox plugin.
Here, YouTube, Vimeo, Google Maps, inline HTML lightbox setting of Magnific Popup are posted.
Since Magnific Popup does not incorporate animation effects by standard, you need to set it yourself.
Here we summarize the CSS3-based animation settings.
animsition is a jQuery plugin that adds an in/out animation effect at the time of page transition.
GreedyNav is a responsive navigation menu using jQuery which switches over the items that protruded when the screen was scaled down to dropdown.
GridTab is a lightweight jQuery plugin to create grid based responsive tabs.
jQuery.NiceScroll is a jQuery plugin that extends scroll display and functions.
metisMenu is a jQuery plugin that expands vertical and vertical menus.
fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, basic fullscreen scrolling of fullPage.js are posted.
fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, navigation menu is displayed..
Offside.js is a JavaScript kit that expands off-canvas.
This is a sample where the left side off-canvas expands.
Offside.js is a JavaScript kit that expands off-canvas.
This is a sample that expands multiple off-canvases.
Filterizr is a jQuery plugin that sorts, shuffles, searches for the items in the container.
This is a basic sample without setting options.
Filterizr is a jQuery plugin that sorts, shuffles, searches for the items in the container.
This is a sample of more advanced setting of Filterizr.
animsition is a jQuery plugin that adds an in/out animation effect at the time of page transition.
Textillate.js is a jQuery plugin that adds In / Out animation effects to text.
Scrolla is jQuery scroll animation plugin.
Hover.css is a style-sheet collection of hover effects.
Animate.css is a style-sheet collection of animation effects.
jQuery Easing Plugin is a plugin to extend the easing (animation effect) of jQuery.
The easing of element is posted.
fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, basic fullscreen scrolling of fullPage.js are posted.
fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, navigation menu is displayed..
jQuery.mb.YTPlayer is jQuery Background player plugin.
Hint.css is a style sheet set for tooltip.
You can display tooltip just by adding class name.
Protip is a jQuery plugin that generates tooltips.
Set the position, size, etc. of the tooltip only with data attribute.
It is a standard Carousel of Bootstrap Framework.
It is a standard Card design of Bootstrap Framework.
It is a standard button design of Bootstrap Framework.
It is a standard Table design of Bootstrap Framework.
HTML5 Cheat Sheet by Make A Website Hub
CSS3 Cheat Sheet by Smashing Magazine
This is the Visual Studio Code default keyboard shortcut list.
Cheese sheet of TweenMAX, TweenLite, TimelineLite, TimelineMax by GreenSock.
On this page you can search for codes collectively.
It is a news feed about design.