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