shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getAnimationProperties
Type:Function
Status:beta
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style
Get the css animation properties from an HTMLElement in an object format
Params
- $elm*-HTMLElement
The element to get the properties from
Return
- -Object
The animation properties
Example
import { getAnimationProperties } from '@blackbyte/sugar/dom'
const props = getAnimationProperties($myCoolHTMLElement);
// output format
// {
// name : ['animation1'],
// duration : [200],
// delay : [0],
// timingFunction : ['linear'],
// iterationCount : [1],
// direction : ['forward'],
// totalDuration : 200
// }Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space