Skip to content

Css animation

TODOs

Pause a CSS keyframe animation

<div class="circle"></div>
.circle {
    animation: pulse 1s infinite ease-in-out;
}
const animations = document.querySelector(".circle").getAnimations();
animations.forEach(animation => {
  animation.pause();
});

bytes-pause-animation - CodeSandbox


Last update: 2023-04-24