Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="test-wait">
<style>
#spacer {
height: 2000px;
}
@keyframes anim {}
#target {
animation: anim 1s linear;
animation-timeline: scroll(nearest);
}
</style>
<div id="target"></div>
<div id="spacer"></div>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
const anims = target.getAnimations();
const anim = anims[0];
try {
anim.effect.updateTiming({
delay: -999999999,
duration: 1000000000,
});
} catch (e) {}
document.documentElement.className = "";
});
});
</script>
</html>