Z
Z
Zhenya2022-01-20 16:24:41
css
Zhenya, 2022-01-20 16:24:41

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

2 answer(s)
V
valgerofficial, 2022-01-20
@JenyaLa

So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question