CSSKeyframesRule

The CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation.

MDN Reference

Properties

Link copied to clipboard

The read-only cssRules property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule.

Link copied to clipboard

The cssText property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.

Link copied to clipboard
open override val length: Int

The read-only length property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list.

Link copied to clipboard

The name property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property.

Link copied to clipboard

The parentRule property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.

Link copied to clipboard

The parentStyleSheet property of the the current rule is defined.

Functions

Link copied to clipboard
fun appendRule(rule: String)

The appendRule() method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules.

Link copied to clipboard
fun deleteRule(select: String)

The deleteRule() method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector.

Link copied to clipboard

The findRule() method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector.

Link copied to clipboard
open operator fun get(index: Int): CSSKeyframeRule
open operator fun get(key: Symbol.iterator): () -> JsIterator<CSSKeyframeRule>
Link copied to clipboard
open inline operator fun iterator(): Iterator<CSSKeyframeRule>