Friday, February 03, 2012

jquery - how to revertFlip of two cards that are not the same? - Stack Overflow

jquery - how to revertFlip of two cards that are not the same? - Stack Overflow: "$("#flipbox").bind("click",function(){
    var flip=true;
    $this=$(this);
    $this.flip({
        direction:'tb',
        onEnd:function(){
            if(flip){
                flip=false;
                setTimeout(function(){$this.revertFlip();},200);
            }
        }
    });
});"

'via Blog this'