Table of Contents

Class CSSKeyframeRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSKeyframeRule interface describes an object representing a set of styles for a given keyframe. It corresponds to the contents of a single keyframe of a @keyframes at-rule.

[Value("CSSKeyframeRule")]
public class CSSKeyframeRule : CSSRule
Inheritance
CSSKeyframeRule
Inherited Members

Remarks

-@keyframes
-CSSKeyFramesRule

See also on MDN

Constructors

CSSKeyframeRule()

public CSSKeyframeRule()

Properties

KeyText

The keyText property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values. The from and to keywords map to 0% and 100%, respectively.

[Value("keyText")]
public string KeyText { get; set; }

Property Value

string

A string.

Remarks

Style

The read-only style property of the CSSKeyframeRule interface contains a CSSStyleDeclaration object representing the descriptors available in the {{cssxref("@keyframes")}} rule's body.

[Value("style")]
public CSSStyleProperties Style { get; }

Property Value

CSSStyleProperties

A CSSStyleDeclaration object.Although the style property itself is read-only in the sense that you can't replace the CSSStyleDeclaration object, you can still assign to the style property directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify the CSSStyleDeclaration object using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.

Remarks