insertRule method
Inserts the given keyframe rule into the list at the given key.
![]() ![]() |
Syntax
var retval = CSSKeyframesRule.insertRule(rule);Parameters
- rule [in]
-
Type: DOMString
The CSSKeyframeRule object to be inserted, expressed in the same syntax as one entry in the @keyframes rule. The key, which describes the point at which the rule should be inserted, is included in the rule string. If a rule with the same key already exists in the list, this rule replaces it.
Return value
Type: HRESULT
This method can return one of these values.
| Return value | Description |
|---|---|
|
The operation completed successfully. |
Standards information
- CSS Animations Module Level 3, Section 5
See also
Show:

