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

  1. animationName*-string

    CSS animationName to search KeyFrameRule declarations for

  2. rules*-array

    Array of CSSRules to search

Return

  1. -CSSKeyframeRule

    Array of matching KeyFrameRules

Example

import { getKeyframesDeclarations } from '@blackbyte/sugar/dom';
getKeyframesDeclarations('myCoolAnimation', [myCoolCssRules]);

Todo

  • testsnormal