Creating a Dynamic Navbar Layout for Category Filtering

I’m looking for guidance on creating a unique navigation system for my website. I came across a webpage that uses a dynamic layout, and I’m hoping someone here can provide insights on how to achieve a similar effect.

The webpage I’m referring to can be found here: Portfolio of select projects by Houses & Barns by John Libby

Instead of traditional navigation, this website reorganizes the layout dynamically based on the selected category.

Any help would be appreciated.

You might find CMS Filter for Webflow - No-code using Attributes from Finsweet a potential solution.