Responsive grid with filter, sort and layout
How do I make an responsive grid with filter, sort and layout?
What is a responsive grid with filter, sort and layout? How do you make a responsive grid with filter, sort and layout? This script and codes were developed by Parth Viroja on 03 September 2022, Saturday.
Responsive grid with filter, sort and layout - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>responsive grid with filter, sort and layout</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> .controls | Category : button.filter(data-filter='all') all button.filter(data-filter='.music') music button.filter(data-filter='.home') home button.filter(data-filter='.spy') spy br | Favourite : button.sort(data-sort='like:asc') asc button.sort(data-sort='like:desc') desc br | Layout : button.layout list - var i = 0 section.grid - for (var i = 1; i < 100; i++) { if 0 == i % 4 article.item.mix.music(data-like="#{i*8}") div Like : #{i*8} else if 0 == i % 2 article.item.mix.spy(data-like="#{i*4}") div Like : #{i*4} else article.item.mix.home(data-like="#{i*2}") div Like : #{i*2} - } <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js?v=2.1.2'></script> <script src="js/index.js"></script>
</body>
</html>
Responsive grid with filter, sort and layout - Script Codes CSS Codes
*{ padding:0px; margin:0px; outline:none; font:14px "Calibri"; font-weight:lighter; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body{ background:#e13300; overflow:hidden; overflow-y:auto; padding-top:120px;
}
.controls{ position:fixed; top:0; left:0; right:0; background:#fff; z-index:1; padding:6px 10px; box-shadow:0px 0px 10px rgba(0,0,0,0.5);
}
button{ border:0px; color:#e13300; margin:4px; padding:4px 12px; cursor:pointer; background:transparent;
}
button.active,button.active:hover{ background:#e13300; color:#fff;
}
button:hover{ background:#efefef;
}
.grid{ padding:4px; color:#fff;
}
.grid:after{ content: ''; display: inline-block; width: 100%;
}
.item{ display:inline-block; float:left; padding:10px; width:33.3333%; display:none;
}
.item > div{ background:rgba(0,0,0,.1); padding:10px; color:#fff; font-size:1.2em; font-weight:lighter; border:1px dashed rgba(0,0,0,.4); background-size:100% 100%; height:300px;
}
.item img{ display:block; margin:0 auto; width:auto; max-width:100%; vertical-align:middle;
}
.category-2 > div{ background:rgba(0,0,0,0.2);
}
.list .item{ width:100% !important;
}
Responsive grid with filter, sort and layout - Script Codes JS Codes
$(function(){ var layout = 'grid', $container = $('.grid'), $changeLayout = $('.layout'); $container.mixItUp({ animation: { //animateChangeLayout: true, // animateResizeTargets: true, effects: 'fade' }, layout: { live:true, containerClass:'' } }); $changeLayout.on('click', function(){ if(layout == 'list'){ layout = 'grid'; $changeLayout.text('list'); $container.mixItUp('changeLayout', { containerClass: layout }); } else { layout = 'list'; $changeLayout.text('grid'); $container.mixItUp('changeLayout', { containerClass: layout }); } });
});
Developer | Parth Viroja |
Username | parthviroja |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,993 Kb |
Views | 26,312 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Responsive Card Design | 2,696 Kb |
Tag list | 2,358 Kb |
3D-box | 2,346 Kb |
Page load animation | 2,511 Kb |
Ubuntu Terminal | 2,603 Kb |
Ripple Effect | 2,548 Kb |
Custom checkbox and radio with menu | 2,288 Kb |
Dynamic Radial Menu Using Javascript | 3,008 Kb |
Card border collspan | 1,781 Kb |
Contextmenu using Jquery | 2,526 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Ocean | Gordonnl | 2,817 Kb |
LDE old privacy page | Jasonangle | 2,339 Kb |
Part 19 Bootstrap split button dropdown | Venkatesha | 1,601 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Svg animation draw | SzymonDziewonski | 5,545 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!