Memory card game javascript

broken image
broken image

Then in custom code you could do your conditional logic and trigger the interaction necessary to make the cards flip or not, such as “if two cards match that have some same value or attribute etc, then both should be visible, else trigger the card flip to hide the card face”

broken image

With custom code you can use for example, the jQuery click event by class name to trigger the interaction that is also using class based targeting. This might be done using a little javascript or jquery to do the conditional logic and use Webflow interactions to for the card flipping and creating a feedback popup window. I am looking forward to great things in the future, take a peek at what’s coming:

broken image

it is not possible to have one interaction trigger another interaction (or not trigger) based on the other element’s value or style. At the moment it is not yet possible natively to make an evaluation of some conditions when an interaction occurs, i.e.

broken image