Contents

insertRule

Adds a keyframe rule to the collection of keyframes.

Declaration

void insertRule (in DOMString rule);

Parameters

  • rule:

    A string representing a selector and keyframe, where the selector is a percentage or keyword and the keyframe is a block. The string must follow the format for keyframe blocks in the @-webkit-keyframes CSS rule.

See Also

Changing Rules