0
アニメーションを表示し、DOMから要素を削除したいのですが、this
を削除するとアニメーションが表示されません。animate.cssそして要素を削除します
私はsetTimeout()
関数を使用しようとしましたが、特定の要素をターゲットにする必要があるため、両方を実行する方法を理解できません。ここ
はコードです:
function anagramHitsTheBottom() {
$('.anagram').each(function() {
const position = Math.round($(this).position().top);
if (position >= 450) {
console.log(lifeScore);
lifeScore -= 1;
$lives.html(Lives Left: ${lifeScore});//Not Working
$(this).css('color','red');
$(this).addClass('animated hinge');
$(this).remove();
}
});
}
私は私がそれらを必要と知っている$ {}でバッククォートを使用していないことを無視してください!