class CSSKeyframesRule extends CSSRule
The CSSKeyframesRule interface describes an object representing a complete set
of keyframes for a CSS animation. It corresponds to the contains of a whole
@@keyframes
at-rule. It implements the CSSRule interface with a type value of 7
(CSSRule.KEYFRAMES_RULE).
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- CSSKeyframesRule
- CSSRule
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CSSKeyframesRule()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
var
CHARSET_RULE: Int
- Definition Classes
- CSSRule
-
var
FONT_FACE_RULE: Int
- Definition Classes
- CSSRule
-
var
IMPORT_RULE: Int
- Definition Classes
- CSSRule
-
var
KEYFRAMES_RULE: Int
- Definition Classes
- CSSRule
-
var
KEYFRAME_RULE: Int
- Definition Classes
- CSSRule
-
var
MEDIA_RULE: Int
- Definition Classes
- CSSRule
-
var
NAMESPACE_RULE: Int
- Definition Classes
- CSSRule
-
var
PAGE_RULE: Int
- Definition Classes
- CSSRule
-
var
STYLE_RULE: Int
- Definition Classes
- CSSRule
-
var
UNKNOWN_RULE: Int
- Definition Classes
- CSSRule
-
var
VIEWPORT_RULE: Int
- Definition Classes
- CSSRule
-
def
appendRule(rule: String): Unit
Inserts a new keyframe rule into the current CSSKeyframesRule.
Inserts a new keyframe rule into the current CSSKeyframesRule. The parameter is a DOMString containing a keyframe in the same format as an entry of a
@keyframes
at-rule. If it contains more than one keyframe rule, a DOMException with a SYNTAX_ERR is thrown.MDN
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
var
cssRules: CSSRuleList
Returns a CSSRuleList of the CSS rules in the media rule.
Returns a CSSRuleList of the CSS rules in the media rule.
MDN
-
var
cssText: String
cssText returns the actual text of the style rule.
cssText returns the actual text of the style rule. To be able to set a stylesheet rule dynamically, see Using dynamic styling information.
MDN
- Definition Classes
- CSSRule
-
def
deleteRule(rule: String): Unit
Deletes a keyframe rule from the current CSSKeyframesRule.
Deletes a keyframe rule from the current CSSKeyframesRule. The parameter is the index of the keyframe to be deleted, expressed as a DOMString resolving as a number between 0 and 1.
MDN
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findRule(rule: String): CSSKeyframeRule
Returns a keyframe rule corresponding to the given key.
Returns a keyframe rule corresponding to the given key. The key is a DOMString containing an index of the keyframe o be returned, resolving to a number between 0 and 1. If no such keyframe exists, findRule returns null.
MDN
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
var
name: String
Represents the name of the animation, used by the animation-name property.
Represents the name of the animation, used by the animation-name property.
MDN
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
var
parentRule: CSSRule
Returns the containing rule, otherwise null.
Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an
@media
block, the parent rule would be that CSSMediaRule.MDN
- Definition Classes
- CSSRule
-
var
parentStyleSheet: CSSStyleSheet
parentStyleSheet returns the stylesheet object in which the current rule is defined.
parentStyleSheet returns the stylesheet object in which the current rule is defined.
MDN
- Definition Classes
- CSSRule
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
type: Int
- Definition Classes
- CSSRule
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()