@keyframes slide-in {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}CSSKeyframesRule: length property / notebook
CSSKeyframesRule: length property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const myRules = document.styleSheets[0].cssRules;
const keyframes = myRules[0]; // a CSSKeyframesRule
console.log(keyframes.length); // 2