Fade
Importβ
import { Fade } from '@resultadosdigitais/tangram-components'
Propertiesβ
children
β
duration
β
Type | Enum of: |
---|---|
Default | Fade.durations.normal |
Descriptionβ
Sets the durations of the transition between from and to values
hiddenVisibility
β
keepMounted
ποΈβ
Concerns | ποΈ Deprecated: - Use `unmount` property instead. |
---|---|
Type | bool |
Default | true |
Descriptionβ
Keep the component mounted before and after the animation.
unmount
β
from
β
Type | number |
---|---|
Default | 0.0 |
Descriptionβ
Sets the pixel position to define the start point of animation. Negative number are allowed.
in
β
Type | bool |
---|---|
Default | false |
Descriptionβ
Defines if the component is visible. When changing this prop, the fade effect will be applied.
onStart
β
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Sets the callback when animation start.
onEnd
β
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Sets the callback when animation end.
to
β
Type | number |
---|---|
Default | 1.0 |
Descriptionβ
Sets the pixel position to define the end point of animation. Negative number are allowed.