Modifier and Type | Method and Description |
---|---|
void |
appendRule(String rule)
The appendRule method appends the passed CSSKeyframeRule into the list at the passed key
|
void |
deleteRule(String key)
The deleteRule method deletes the CSSKeyframeRule with the passed key.
|
ICSSKeyframeRule |
findRule(String key)
The findRule method returns the rule with a key matching the passed key.
|
ICSSRuleList |
getCSSRules()
This attribute gives access to the keyframes in the list
Value:
The CSS rules.
|
String |
getName()
This attribute is the name of the keyframes, used by the ‘animation-name’ property.
|
getCSSText, getParentRule, getParentStyleSheet, getType, setCSSText
String getName()
This attribute is the name of the keyframes, used by the ‘animation-name’ property.
Value: The name.ICSSRuleList getCSSRules()
This attribute gives access to the keyframes in the list
Value: The CSS rules.void appendRule(String rule)
The appendRule method appends the passed CSSKeyframeRule into the list at the passed key
rule
- The rule to be appended, expressed in the same syntax as one entry in the ‘@keyframes’ rulevoid deleteRule(String key)
The deleteRule method deletes the CSSKeyframeRule with the passed key. If a rule with this key does not exist, the method does nothing
key
- The key which describes the rule to be deleted. The key must resolve to a number between 0 and 1, or the rule is ignoredICSSKeyframeRule findRule(String key)
The findRule method returns the rule with a key matching the passed key. If no such rule exists, a null value is returned
key
- The key which described the rule to find. The key must resolve to a number between 0 and 1, or the rule is ignored.