I am currently working on implementing the Filterizr plugin () into my project. I specifically require the mix filter feature as demonstrated on this tutorial page .
Upon clicking the mix button, as shown in the screenshots, only orange and purple blocks should be displayed - this is exactly what I need, but unfortunately, it is not functioning correctly.
I have attempted to build my own demo using the plugin, but have not been successful in getting it to work.
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="583a37372c2b2c2a3928186d7669766b">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/filterizr/2.2.4/jquery.filterizr.min.js"></script>
<title>Hello, world!</title>
</head>
<body>
<h1>filter</h1>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bcded3d3c8cfc8ceddccfc89928d928f">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<div class="container">
<div style="cursor:pointer;" class="col-md-12 col-xs-12">
<ul>
<li data-filter="all">All</li>
<li data-filter="1">1</li>
<li data-filter="2">2</li>
<li data-filter="1,2">1 and 2</li>
</ul>
</div>
</div>
<h1>items</h1>
<div style="margin: 40px;" class="row filtr-container">
<div style="border: 4px black;" class="col-md-2 col-sm-6 filtr-item" data-category="all,1">
<span>1</span>
</div>
<div style="border: 4px black;" class="col-md-2 col-sm-6 filtr-item" data-category="all,2">
<span>2</span>
</div>
<div style="border: 4px black;" class="col-md-2 col-sm-6 filtr-item" data-category="all">
<span>3</span>
</div>
</div>
<script>
$('.filtr-container').filterizr({});
</script>
</body>
</html>
Upon clicking the "1 and 2" filter, I expect to see items labeled 1 and 2, similar to the example shown on this tutorial with the Mix option, however, I am encountering difficulties. I am currently stuck and would appreciate any guidance or advice.