nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
627 stars 312 forks source link

Flip a card, clicking on a button, that is placed on that card #104

Closed RoRElessar closed 7 years ago

RoRElessar commented 7 years ago

Hi there! Is it possible to flip a card, clicking on a specific element, that is placed on that card? I tried to do something like:

$('.button').click(function(){
  $('.card').flip(true);
});

It works, but clicking the card flips it also. I don't need such a behavior, by clicking the card, only a button on it should flip it. Is there any way of doing it? Thanks.