collapseHorizontalTransition(
element
,direction
,animated
,signal
,context
):void
|Promise
<void
>
A transition function for collapsing elements horizontally.
This function is created using the createCollapseTransition
utility
and is configured with horizontalConfig
.
SSRHTMLElement
Element on which the transition should be applied.
Whether the element should be shown or hidden.
"show"
| "hide"
boolean
Whether the transition should be animated.
Signal allowing to stop the transition while running.
object
Context of the current transition. It is reused between calls if the previous transition was stopped while running on the same element.
void
| Promise
<void
>
collapseVerticalTransition(
element
,direction
,animated
,signal
,context
):void
|Promise
<void
>
A transition function that handles vertical collapse animations.
This function is created using the createCollapseTransition
utility with
a vertical configuration. It is intended to be used for animating the
collapsing and expanding of vertical elements.
SSRHTMLElement
Element on which the transition should be applied.
Whether the element should be shown or hidden.
"show"
| "hide"
boolean
Whether the transition should be animated.
Signal allowing to stop the transition while running.
object
Context of the current transition. It is reused between calls if the previous transition was stopped while running on the same element.
void
| Promise
<void
>