Create CSS keyframe animations with live preview and copy-ready code.
Designing for the web often involves fine-tuning visual properties until they look just right. CSS Animation Generator gives you an interactive playground to create css keyframe animations with live preview and copy-ready code and instantly see the result. When you're happy with the output, copy the generated CSS code and paste it into your stylesheet — no guesswork needed.
@keyframes block and the .animated rule into your stylesheet, then add the class animated to any HTML element you want to animate.forwards keeps the final keyframe state after the animation ends. backwards applies the first keyframe during the delay period. both combines both behaviors.element.classList.add('animated'). To replay, remove then re-add the class using requestAnimationFrame.