Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
		<div class="page-title">
			<h1>Filterable Gallery <br/><small>Using Filterizr.js</small></h1>
			<small class="author">By <a href="">Syakir Rahman</a></small>

		<div class="port-gallery">
			<div class="filterizr-control">
				<ul class="filterizr-filter">
				 	<li class="filtr-active" data-filter="all">All Categories</li>
				 	<li data-filter="1">Web Design</li>
				 	<li data-filter="2">Front-end Dev</li>
				 	<li data-filter="4">Codeigniter</li>
				<ul class="filterizr-sorting">
						<span>Sort by :</span>
						<select data-sortOrder>
						   <option value="title"> Title </option>
				 	<li class="filtr-active" data-sortAsc>Asc</li>
				 	<li data-sortDesc>Desc</li>
				 	<li data-shuffle>Acak</li>
			<div class="filtr-container">

				<div class="filtr-item" data-category="2" data-title="128 Web - HTML Website Template">
					<img src="" alt="128 Web Website Template" />
					<div class="desc"><a href="" target="_blank" rel="noopener">128 Web - HTML Website Template</a></div>

				<div class="filtr-item" data-category="4" data-title="Website BLK Bekasi">
					<img src="" alt="Website BLK Bekasi" />
					<div class="desc"><a href="#" target="_blank" rel="noopener nofollow">Website BLK Bekasi</a></div>

				<div class="filtr-item" data-category="2" data-title="Website Dishub Kota Bogor">
					<img src="" alt="128 Web Website Template" />
					<div class="desc"><a href="#" target="_blank" rel="noopener nofollow">Website Dishub Kota Bogor</a></div>

				<div class="filtr-item" data-category="2" data-title="Insan Medika Landing Page">
					<img src="" alt="Insan Medika Landing Page" />
					<div class="desc"><a href="#">Insan Medika Landing Page</a></div>

				<div class="filtr-item" data-category="1" data-title="Kontes Desain Appkodes">
					<img src="" alt="Kontes Desain Appkodes" />
					<div class="desc"><a href="#">Kontes Desain Appkodes</a></div>

				<div class="filtr-item" data-category="2" data-title="Kalemag HTML Template">
					<img src="" alt="Kalemag HTML Template" />
					<div class="desc"><a href="#">Kalemag HTML Template</a></div>

				<div class="filtr-item" data-category="2" data-title="Dmw Dashboard Front-end">
					<img src="" alt="Dmw Dashboard Front-end" />
					<div class="desc"><a href="#">Dmw Dashboard Front-end</a></div>

				<div class="filtr-item" data-category="1" data-title="Desain web Bello Perfetto">
					<img src="" alt="Desain web Bello Perfetto" />
					<div class="desc"><a href="#">Desain web Bello Perfetto</a></div>
				<div class="filtr-item" data-category="2" data-title="Wedding Wonderland Landing Page">
					<img src="" alt="Wedding Wonderland Landing Page" />
					<div class="desc"><a href="#">Wedding Wonderland Landing Page</a></div>

				<div class="filtr-item" data-category="1" data-title="PSD Design Simpleshop">
					<img src="" alt="PSD Design Simpleshop" />
					<div class="desc"><a href="#">PSD Design Simpleshop</a></div>

				<div class="filtr-item" data-category="2" data-title="Pesanlab Website Frontend">
					<img src="" alt="Pesanlab Website Frontend" />
					<div class="desc"><a href="#">Pesanlab Website Frontend</a></div>

				<div class="filtr-item" data-category="2" data-title="Panenid Website Landing Page">
					<img src="" alt="Panenid Website Landing Page" />
					<div class="desc"><a href="#">Panenid Website Landing Page</a></div>

				<div class="filtr-item" data-category="2" data-title="Dusty Creative Frontend Website">
					<img src="" alt="Dusty Creative Frontend Website" />
					<div class="desc"><a href="#">Dusty Creative Frontend Website</a></div>




                * {
img {
	max-width: 100%;
	height: auto;
ul,ol {
	list-style-type: none;

body {
	background-color: #0273c7;
	font-family: 'cambria', sans-serif;

.container {
	margin:10px auto;
	position: relative;
.page-title {
	margin:17px auto;
	text-align: center;
	font-size: 17px;
.page-title h1 {
	line-height: 1;
.page-title a{
	text-decoration: none;
.page-title a:hover{
	text-decoration: underline;
	color: #ff3333;

.port-gallery {
	margin:20px auto;
  color: #fff;
.port-gallery ul {
  padding: 0 10px;
  margin: 0;
  margin-bottom: 10px;
  float: left;
  display: inline-block;
.port-gallery ul li {
  display: inline-block;
  cursor: pointer;
  padding: 5px 10px
.port-gallery ul li.filtr-active {
  background-color: #f27f2b;
  cursor: default;
  color: #fff

.port-gallery ul.filterizr-sorting {
	float: right;
.filtr-item {
  width: 25%;
  padding: 10px;
  height: auto;
.filtr-item img {
  border-radius: 3px;
  width: 100%;
  margin-bottom: 0!important;
  height: 160px;
.filtr-item p {
  margin-bottom: 0!important
.filtr-item .desc {
  display: block;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, .7);
  transition: ease .5s;
  -moz-transition: ease .5s;
  -webkit-transition: ease .5s;
  color: #fff;
  padding: 10px;
  text-align: center;
.filtr-item .desc a {
  color: #fff;
  text-decoration: none;
  cursor: pointer



                $(document).ready(function() {

			$('.filterizr-filter li').click(function() {
			  $('.filterizr-filter li').removeClass('filtr-active');
      $('.filterizr-sorting li').click(function() {
			  $('.filterizr-sorting li').removeClass('filtr-active');
			var filterizd = $('.filtr-container').filterizr();

			filterizd.filterizr('sort', 'title', 'asc');