I took a look at your example.
Yes, a script that would filter results as per your example is possible but with 1 big drawback…
You would have a lot of empty space towards the bottom of the page if the applied filter has a smaller number of products.
Essentially, you would build the page with all products visible. Once the filter is applied and products are removed/hidden to show only the relevant once, you would end up with empty space beneath the last product.
All of the above applies if the products are known and not dynamically generated.
Like I said in my previous post, it might be easier to build a landing page like that from scratch.