Double-sided flip box using css transformations.
$ component install component/flipbox
<divid="card"><div><div>front</div><div>back</div></div></div><script>varcard=document.querySelector('#card');varFlipbox=require('flipbox');varbox=newFlipbox(card);box.el.onclick=function(){box.flip();};</script>Initialize a Flipbox with the given container el. Inside
this should be a wrapper div, within that should be the two
faces. View ./example.html for a full example.
Toggle the visibile face.
Show the front face.
Show the back face.
MIT