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.