I’m trying to create a category filter for a list of projects with multiple categories.
I want the projects that don’t belong to the selected category to be hidden when a category is clicked.
So I used category buttons as triggers to hide the unrelated projects.
The problem is: unless I click the category again to bring back the hidden projects, the animations don’t work properly when switching categories.
Is there a way to reset animations when clicking on a different trigger?