This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

insertRule

Method of css/cssom/CSSKeyframesRulecss/cssom/CSSKeyframesRule

Syntax

var object = object.insertRule();

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

This method can return one of these values.

{

Syntax

Standards information

Parameters

rule [in]
Type: DOMStringThe 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.

See also

Related articles

Animation

CSSOM

Related pages

Attributions