WebKitCSSKeyframeRule Class Reference

Inherits from
CSSRule
Availability
Available in Safari 4.0 and later.
Available in iOS 2.0 and later.
Companion guide

Overview

WebKitCSSKeyframeRule objects represent the style rule for a single keyframe in the @-webkit-keyframes CSS rule used in animations. The WebKitAnimationEvent class encapsulate information about running animations.

Tasks

Accessing Properties

Properties

keyText

A keyframe selector.

attribute DOMString keyText;
Discussion

A keyframe selector represented as a percentage value or the keyword from or to. The selector is used to specify the percentage along the duration of the animation. The keyframe is specified by the block of property values declared for the selector. The keyword from is equivalent to 0 percent and to is equivalent to 100 percent.

Availability

style

The style associated with this keyframe.

readonly attribute CSSStyleDeclaration style;
Availability