This page is In Progress

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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