ui/Transition
A component that can transition its children components onto the screen.
Transitions whether that's from off the edge of the screen or hidden inside or behind an
already-on-screen component. You can switch types of transitions using the type property,
change the direction they come in from using the direction property, or even adjust the
transition timing function using timingFunction.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Transition Component
Section titled “Transition   Component ”A stateful component that allows for applying transitions to its child items via configurable properties and events.
Properties
children
Section titled “children”The node to be transitioned.
direction
Section titled “direction”The direction of transition (i.e. where the component will move to; the destination).
Supported directions are:
'up','right','down','left'.
Controls how long the transition should take.
Supported preset durations are:
'short'(250ms),'medium'(500ms), and'long'(1s).'medium'(500ms) is default when no others are specified.
Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values are also supported and treated as milliseconds.
Default: 'medium'noAnimation
Section titled “noAnimation”Disables transition animation.
When false, visibility changes animate.
onHide
Section titled “onHide”Called after transition for hiding is finished.
onShow
Section titled “onShow”Called after transition for showing is finished.
timingFunction
Section titled “timingFunction”The transition timing function.
Supported function names are: ease, ease-in, ease-out, ease-in-out, ease-in-quart,
ease-out-quart, and linear.
The type of transition to affect the content.
Supported types are:
'slide','clip', and'fade'.
Details on types:
'slide'- Typically used for bringing something which is off the edge of the screen, and not visible, onto the screen. Think of a popup, toast, notification, dialog, or an overlaying menu. This requires no re-rendering or repainting of the screen during the transition, making it very performant. However, this does not affect layout at all, which makes it less useful for transitioning from a place already on the screen.'clip'- This is useful for showing a component that transitions-in from a location that is already on the screen. Examples would be an expanding header or an accordion. This type does affect layout, its current size will push other sibling elements to make room for itself. Because of this, repainting the layout does happen during transition.'fade'- Fade the components onto the screen, from 0 opacity (completely invisible) to 1 (full visibility). Pretty basic, but useful for fading on/off a tooltip, a menu, a panel, or even view contents. This does not affect layout at all.
visible
Section titled “visible”The visibility of the component, which determines whether it's on the screen or off.
Default: trueTransition( ) → A stateful component that allows for applying transitions to its child items via configurable properties and events.
0 Params
Returns
TransitionBase Component
Section titled “TransitionBase   Component ”The stateless structure of the component.
In case you want to provide all of the state yourself.
In general, you'll probably want to use the Transition instead of TransitionBase.
Properties
Provide a function to get the reference to the child node (the one with the content) at render time.
Useful if you need to measure or interact with the node directly.
Default: nullchildren
Section titled “children”The node to be transitioned.
clipHeight
Section titled “clipHeight”The height of the transition when type is set to 'clip', used when direction is
'left' or 'right'.
clipWidth
Section titled “clipWidth”The width of the transition when type is set to 'clip', used when direction is 'left'
or 'right'.
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
transition- The root component classinner- The element inside the transition. This is the container for the transitioning content.shown- Applied when content is present (visible), related to thevisibleprop/statehidden- Applied when content is not present (hiding), related to thevisibleprop/stateslide- Applied when theslidetypeis setfade- Applied when thefadetypeis setclip- Applied when thecliptypeis setup- Applied when thedirectionupis setright- Applied when thedirectionrightis setdown- Applied when thedirectiondownis setleft- Applied when thedirectionleftis setshort- Applied when thedurationshortis setmedium- Applied when thedurationmediumis setlong- Applied when thedurationlongis setease- Applied when thetimingFunctioneaseis setease-in- Applied when thetimingFunctionease-inis setease-out- Applied when thetimingFunctionease-outis setease-in-out- Applied when thetimingFunctionease-in-outis setease-in-quart- Applied when thetimingFunctionease-in-quartis setease-out-quart- Applied when thetimingFunctionease-out-quartis setlinear- Applied when thetimingFunctionlinearis set
direction
Section titled “direction”Sets the direction of transition. Where the component will move to; the destination.
Supported directions are: 'up', 'right', 'down', 'left'.
Controls how long the transition should take.
Supported preset durations are: 'short' (250ms), 'medium' (500ms), and 'long' (1s).
'medium' (500ms) is default when no others are specified.
Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
are also supported and treated as milliseconds.
noAnimation
Section titled “noAnimation”Disables transition animation.
When false, visibility changes animate.
timingFunction
Section titled “timingFunction”The transition timing function.
Supported function names are:
ease,ease-in,ease-out,ease-in-out,ease-in-quart,ease-out-quart, andlinear.
The type of transition to affect the content.
Supported types are:
'slide','clip', and'fade'.
Details on types:
'slide'- Typically used for bringing something which is off the edge of the screen, and not visible, onto the screen. Think of a popup, toast, notification, dialog, or an overlaying menu. This requires no re-rendering or repainting of the screen during the transition, making it very performant. However, this does not affect layout at all, which makes it less useful for transitioning from a place already on the screen.'clip'- This is useful for showing a component that transitions-in from a location that is already on the screen. Examples would be an expanding header or an accordion. This type does affect layout, its current size will push other sibling elements to make room for itself. Because of this, repainting the layout does happen during transition.'fade'- Fade the components onto the screen, from 0 opacity (completely invisible) to 1 (full visibility). Pretty basic, but useful for fading on/off a tooltip, a menu, a panel, or even view contents. This does not affect layout at all.
visible
Section titled “visible”Sets the visibility of the component, which determines whether it's on screen or off.
Default: true