createCSSTransition(
start
):TransitionFn
Create a simple css transition.
• start: CSSTransitionFn
a function that creates the css animation and returns a clean-up function
the css transition
CSSTransitionFn: (
element
,direction
,animated
,context
) =>void
| () =>void
Defines a function type for CSS transitions.
• element: SSRHTMLElement
• direction: "show"
| "hide"
• animated: boolean
• context: object
void
| () => void
getTransitionDurationMs(
element
):number
Retrieve the transition duration of the provided html element in milli seconds
• element: HTMLElement
the html element
number
transition duration in milli seconds
hasTransition(
element
):boolean
Check if the provided html element has a transition
• element: HTMLElement
the html element
boolean
true if the element has a transition