Flip div on click and if it has a specific class it remains visible

Hi :slight_smile:

I would like to build a really simple animation in blocs.

In total I have 12 divs (cards) and I would like that onClick on one div, this is will flip and then onClick on another div, if that div as a specific class, both divs remain visible. If not they should turn back.

So kind of a Memory game or Matching pairs game …

I have no JS experience so I am trying to solve this using blocs default functions.

Is that possible?

Many many thanks in advance!



There are tons of examples online. Check them out. You will need javascript, as there has to be some sort of logic applied.