Answer the question
In order to leave comments, you need to log in
How to set up a category filter for a gallery?
The bottom line is that there are section buttons. When clicked, the active class is added, when pressed again, it is removed. When the active class is added, the show class is added to the required blocks in the gallery below. You need to edit the js so that when you click the button again, not only the active of the button is removed, but also the show of the blocks.
Here is the code:
https://codepen.io/Jenya_LA/pen/rNGgEEV
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question