This function is called at each "enter"
TransitionStage. If a
TransitionOptions.nodeRef was provided, the DOM node should be
available in nodeRef.current
by this point if the transition requires DOM
calculations.
Boolean if this is the initial appear
flow.
THis function is called at each "exit"
TransitionStage. If a TransitionOptions.nodeRef was provided, the DOM node should be available in
nodeRef.current
by this point if the transition requires DOM calculations.
An HTMLElement type for the static element.
An HTMLElement type for the fixed element.
This function is called when the page is scrolled while the fixed element is visible. This is generally used to reposition the fixed element or hide it if it is no longer visible within the viewport.
The scroll event
The FixedPositioningScrollData that can be used for custom scroll behavior.
The way the transition works is by flowing through the different stages and
assigning waiting for a timeout to occur. Setting the stage
to enter
will
begin the enter transition going from enter -> entering -> entered
while
setting the stage to exit
will transition from exit -> exiting -> exited
.
Either a single timeout duration in milliseconds to use for each of the TransitionActions stages, or an object of transition durations.
An object timeout values that would be used for each
TransitionActions. If a value is set to 0
or undefined
, the
transition will not occur.
The default cross fade transition classes to use.
The default cross fade transition timeout.
The default CSSTransitionClassNames for a horizontal scale transition.
The default TransitionTimeout to use for horizontal and vertical scale transitions.
The default CSSTransitionClassNames for a vertical scale transition.
This is a component implementation of the useCSSTransition hook that
implements the temporary
behavior. Since this component uses the
React.cloneElement
to inject the ref
and className
into the children
,
it is recommended to use the hook instead.
An HTMLElement type used for the ref required for the transition.
This is a component implementation of the useCollapseTransition hook
that implements the temporary
behavior. Since this component uses the
React.cloneElement
to inject the ref
and className
into the children
,
it is recommended to use the hook instead.
An HTMLElement type used for the ref required for the transition.
This is a component implementation of the useCrossFadeTransition hook
that implements the temporary
behavior. Since this component uses the
React.cloneElement
to inject the ref
and className
into the children
,
it is recommended to use the hook instead.
An HTMLElement type used for the ref required for the transition.
A component implementation of the useScaleTransition hook that just
has some reasonable defaults and supports portalling the children. Since this
component uses the React.cloneElement
to inject the ref
and className
into the children
, it is recommended to use the hook instead.
The HTMLElement type used or the ref required for the transition.
This hook is used to create CSS transitions for different components whenever a TransitionHookOptions.transitionIn flag is changed.
An HTMLElement type used for the ref required for the transition.
This hook is used to create a transition to collapse and expand an element
inline with other content like an accordion by animating the
max-height
, padding-top
, and padding-bottom
CSS properties. The default
behavior is to hide the element completely while collapsed, but providing the
minHeight
, minPaddingTop
, and minPaddingBottom
options can make this
work like a "See More"/"Preview" type of element
An HTMLElement type used for the ref required for the transition.
This hook is used to create a "cross fade" transition -- a transition that gradually increases the opacity and transforms the element vertically a short distance. This is generally used for full page transitions when a route changes.
An HTMLElement type used for the ref required for the transition.
This hook is used to attach a temporary (fixed) element to another element
within the page. In other words, this is a way to have an element with
position: fixed
as if it were position: absolute
to a parent element that
had position: relative
.
An HTMLElement type for the static element.
An HTMLElement type for the fixed element.
Implements a scale transition that should generally be used for temporary
elements that are positioned via position: absolute
or position: fixed
.
The HTMLElement type used or the ref required for the transition.
You'll most likely want to use the useCSSTransition hook instead since this is just a low-level hook that can be used to transition using timeouts.
The HTMLElement type used or the ref required for the transition.
Generated using TypeDoc
@since 4.0.0