Toggle Class does not work

I want to add the class .filter-visible to a div that has the class .filter-container.

For this I use a button and added the following interaction:

Click → Current

And then these settings:

What am I missing here? Why does this not work?

I tried to do it exactly like it is shown here:

Did you toggle the ID?
Check this for more info.

1 Like

Yeah, that was it. Now it works.

Thank you very much @Marius!