Class KeyFrameRule

All Implemented Interfaces:
AnimationIntf<CssRule>, BackgroundIntf<CssRule>, com.oorian.css.BasicBoxIntf<CssRule>, com.oorian.css.BasicUserInterfaceIntf<CssRule>, BorderIntf<CssRule>, com.oorian.css.ColorIntf<CssRule>, CountersIntf<CssRule>, com.oorian.css.CssStyleIntf<CssRule>, com.oorian.css.FilterEffectsIntf<CssRule>, com.oorian.css.FlexibleBoxLayoutIntf<CssRule>, com.oorian.css.FontIntf<CssRule>, com.oorian.css.GeneratedContentForPagedMediaIntf<CssRule>, com.oorian.css.ImageValuesAndReplacedContentIntf<CssRule>, com.oorian.css.ListIntf<CssRule>, com.oorian.css.MarqueeIntf<CssRule>, com.oorian.css.MaskingIntf<CssRule>, com.oorian.css.MultiColumnLayoutIntf<CssRule>, PagedMediaIntf<CssRule>, com.oorian.css.SpeechIntf<CssRule>, com.oorian.css.TableIntf<CssRule>, com.oorian.css.TextDecorationIntf<CssRule>, com.oorian.css.TextIntf<CssRule>, com.oorian.css.TransformIntf<CssRule>, com.oorian.css.TransitionIntf<CssRule>, com.oorian.css.WritingModeIntf<CssRule>

public class KeyFrameRule extends CssRule
Represents a keyframe rule within a CSS @keyframes animation definition.

KeyFrameRule extends CssRule to define styles at specific points in an animation timeline. The selectors represent keyframe positions such as "from", "to", or percentage values like "0%", "50%", "100%".

Example usage:

 KeyFrameRule startFrame = new KeyFrameRule("from");
 startFrame.setOpacity("0");

 KeyFrameRule endFrame = new KeyFrameRule("to");
 endFrame.setOpacity("1");
 
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • KeyFrameRule

      public KeyFrameRule(String... selectors)
      Constructs a keyframe rule with the specified selectors.
      Parameters:
      selectors - The keyframe position selectors (e.g., "from", "to", "0%", "50%", "100%").