Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016年8月.
CSSKeyframeRule インターフェイスは、指定されたキーフレームのスタイルセットを表すオブジェクトを提供します。 @keyframes アットルールの 1 つのキーフレームに対応しています。
CSSRule CSSKeyframeRule祖先である CSSRule からプロパティを継承しています。
CSSKeyframeRule.keyText'10%' や '75%' のように、キーフレームのキーを表します。from キーワードは '0%' に対応付けられ、to キーワードは '100%' に対応づけられます。
CSSKeyframeRule.style 読取専用キーフレームに関連した CSS スタイルの CSSStyleDeclaration を返します。
固有のメソッドはありません。祖先である CSSRule からメソッドを継承しています。
この CSS には、 keyframes アットルールが含まれています。これは最初の CSSRule となり、 document.styleSheets[0].cssRules で返されます。 myRules[0] は CSSKeyframesRule オブジェクトを返し、その中に各キーフレームのための個別の CSSKeyFrameRule オブジェクトが格納されます。
| CSS Animations Level 1 # interface-csskeyframerule |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年1月4日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.