shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getKeyframesDeclarations
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style
Get all the keyframes declarations from the passed rules
Params
- animationName*-string
CSS animationName to search KeyFrameRule declarations for
- rules*-array
Array of CSSRules to search
Return
- -CSSKeyframeRule
Array of matching KeyFrameRules
Example
import { getKeyframesDeclarations } from '@blackbyte/sugar/dom';
getKeyframesDeclarations('myCoolAnimation', [myCoolCssRules]);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space