nnattawat / flip

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

Trigger the flip event from outside the Div ? #107

Closed apatikgg closed 7 years ago

apatikgg commented 7 years ago

I just found out about your flip.js and it might just be what I was trying to achieve on my own.
Is it possible to trigger the flip event from outside the div ? For instance :

<div id="flip-left">Click me to flip Card to the left</div>
<div id="flip-right">Click me to flip Card to the right</div>
<div id="card"> 
  <div class="front"> 
    Front content
  </div> 
  <div class="back">
    Back content
  </div> 
</div>

I didn't see this functionnality mentionned so I thought I would ask here. Thank you !

JemarJones commented 7 years ago

Yea, just use the manual flip. You can see similar stuff on the project page http://nnattawat.github.io/flip/