Safari Developer Library

Developer

WebKitCSSKeyframeRule Class Reference

Options
Deployment Target:

On This Page

WebKitCSSKeyframeRule

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.

  • keyText Property

    A keyframe selector.

    Declaration

    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

    Available in Safari 4.0 and later.

    Available in iOS 2.0 and later.

  • style Property

    The style associated with this keyframe.

    Declaration

    readonly attribute CSSStyleDeclaration style;

    Availability

    Available in Safari 4.0 and later.

    Available in iOS 2.0 and later.