1
У меня есть эта функция, и я анимация через css флипбокс. Как я могу реализовать, что функции щелчка не поставлены в очередь, так что вы не можете «спамить» флипбокс?jQuery no queue
$(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);
});
Любые идеи оцениваются! Thnx заранее!