$(document).ready(function(){
$("#info-text-container").click(function(){
$("#info-text").delay(500).addClass("info-text-active");
});
});
これにより、クリックされたときに遅延が発生しません。私が達成したいこと。なぜ、これはハッキング可能で、克服できるのでしょうか? ありがとう!
delay
アニメーション メソッドでのみ機能しますsetTimeout
。関数を使用できます。
$("#info-text-container").click(function(){
setTimeout(function(){
$("#info-text").addClass("info-text-active");
}, 500);
});
それほどではありませんが、たとえば次のようになります。
$("#info-text").delay(500).queue(function(next) {
$(this).addClass("info-text-active");
next();
});