Answers for "animation start css"

CSS
2

css animation delay

/* Answer to: "css animation delay" */

/*
  The animation-delay property specifies a delay for the start of an animation.
*/

div {
  animation-delay: 2s;
}
Posted by: Guest on June-29-2020
1

css start animation

const element = document.querySelector(".yourElementClass");
const btn = document.querySelector(".yourButtonClass");

btn.onclick = () => {
  element.style.animation = "YourAnimation 1s linear infinite"
}
// you will need js to start an animation, Don't forget to declare it using css
Posted by: Guest on March-28-2021

Browse Popular Code Answers by Language