123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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

		<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>
				<ul class="filterizr-sorting">
					<li>
						<span>Sort by :</span>
						<select data-sortOrder>
						   <option value="title"> Title </option>
						</select>
					</li>
				 	<li class="filtr-active" data-sortAsc>Asc</li>
				 	<li data-sortDesc>Desc</li>
				 	<li data-shuffle>Acak</li>
				</ul>
			</div>
			<div class="filtr-container">

				<div class="filtr-item" data-category="2" data-title="128 Web - HTML Website Template">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/128-web-300x171.jpg" alt="128 Web Website Template" />
					<div class="desc"><a href="https://lab.devaradise.com/128web" target="_blank" rel="noopener">128 Web - HTML Website Template</a></div>
				</div>

				<div class="filtr-item" data-category="4" data-title="Website BLK Bekasi">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/blkbekasi-300x171.jpg" alt="Website BLK Bekasi" />
					<div class="desc"><a href="#" target="_blank" rel="noopener nofollow">Website BLK Bekasi</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Website Dishub Kota Bogor">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/dllaj-kotabogor-300x171.jpg" alt="128 Web Website Template" />
					<div class="desc"><a href="#" target="_blank" rel="noopener nofollow">Website Dishub Kota Bogor</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Insan Medika Landing Page">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/inmed-300x171.jpg" alt="Insan Medika Landing Page" />
					<div class="desc"><a href="#">Insan Medika Landing Page</a></div>
				</div>

				<div class="filtr-item" data-category="1" data-title="Kontes Desain Appkodes">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/psd-appkodes-300x171.jpg" alt="Kontes Desain Appkodes" />
					<div class="desc"><a href="#">Kontes Desain Appkodes</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Kalemag HTML Template">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/kalemag-300x171.jpg" alt="Kalemag HTML Template" />
					<div class="desc"><a href="#">Kalemag HTML Template</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Dmw Dashboard Front-end">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/dmw-dashboard-300x171.jpg" alt="Dmw Dashboard Front-end" />
					<div class="desc"><a href="#">Dmw Dashboard Front-end</a></div>
				</div>

				<div class="filtr-item" data-category="1" data-title="Desain web Bello Perfetto">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/psd-belloperfetto-300x171.jpg" alt="Desain web Bello Perfetto" />
					<div class="desc"><a href="#">Desain web Bello Perfetto</a></div>
				</div>
				
				<div class="filtr-item" data-category="2" data-title="Wedding Wonderland Landing Page">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/wedding-wonderland-300x171.jpg" alt="Wedding Wonderland Landing Page" />
					<div class="desc"><a href="#">Wedding Wonderland Landing Page</a></div>
				</div>

				<div class="filtr-item" data-category="1" data-title="PSD Design Simpleshop">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/psd-simpleshop-300x171.jpg" alt="PSD Design Simpleshop" />
					<div class="desc"><a href="#">PSD Design Simpleshop</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Pesanlab Website Frontend">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/pesanlab-300x171.jpg" alt="Pesanlab Website Frontend" />
					<div class="desc"><a href="#">Pesanlab Website Frontend</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Panenid Website Landing Page">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/panenid-300x171.jpg" alt="Panenid Website Landing Page" />
					<div class="desc"><a href="#">Panenid Website Landing Page</a></div>
				</div>

				<div class="filtr-item" data-category="2" data-title="Dusty Creative Frontend Website">
					<img src="https://www.devaradise.com/id/wp-content/uploads/sites/4/2018/07/dusty-creative-300x171.jpg" alt="Dusty Creative Frontend Website" />
					<div class="desc"><a href="#">Dusty Creative Frontend Website</a></div>
				</div>

			</div>


		</div>
            
          
!
            
              * {
	padding:0;
	margin:0;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-box-sizing:border-box;
}
img {
	max-width: 100%;
	height: auto;
}
ul,ol {
	list-style-type: none;
}

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

.container {
  width:1000px;
  overflow:auto;
	margin:10px auto;
	position: relative;
}
.page-title {
	margin:17px auto;
	text-align: center;
	color:#fff;
	font-size: 17px;
}
.page-title h1 {
	font-size:40px;
	line-height: 1;
}
.page-title a{
	color:#ff7777;
	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;
  display:block;
}
.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');
			  $(this).addClass('filtr-active');
			});
      $('.filterizr-sorting li').click(function() {
			  $('.filterizr-sorting li').removeClass('filtr-active');
			  $(this).addClass('filtr-active');
			});
  
			var filterizd = $('.filtr-container').filterizr();

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

		});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console