
Untitled
By: a guest on
Jun 14th, 2012 | syntax:
JavaScript | size: 0.64 KB | hits: 22 | expires: Never
$(document).ready(function () {
function flipBack() {
console.log($(this));
var $this = $(this);
$this.removeClass('flip');
$this.children('.front').delay(600).show(0);
$this.children('.back').delay(600).hide(0);
return false;
}
function flipForward() {
var $this = $(this);
$this.addClass('flip');
$this.children('.front').delay(600).hide(0);
$this.children('.back').delay(600).show(0);
var t = setTimeout(function () {
$this.trigger("click");
}, 5000);
}
$('.click').toggle(flipForward, flipBack);
});