Skip to main content

Fade

Import​

import { Fade } from '@resultadosdigitais/tangram-components'

Properties​

children​

Typenode | elementType
Defaultnull

Description​

The content that will receive the animation.

duration​

Type
Enum of:
  • Fade.durations.ultraSlow
  • Fade.durations.extraSlow
  • Fade.durations.slow
  • Fade.durations.normal
  • Fade.durations.fast
  • Fade.durations.extraFast
DefaultFade.durations.normal

Description​

Sets the durations of the transition between from and to values

hiddenVisibility​

Typebool
Defaultfalse

Description​

Sets when transition ends and visibility is hidden.

keepMounted πŸ—‘οΈβ€‹

Concerns
πŸ—‘οΈ Deprecated: - Use `unmount` property instead.
Typebool
Defaulttrue

Description​

Keep the component mounted before and after the animation.

unmount​

Typebool
Defaultfalse

Description​

Don't keep the component mounted before and after the animation.

from​

Typenumber
Default0.0

Description​

Sets the pixel position to define the start point of animation. Negative number are allowed.

in​

Typebool
Defaultfalse

Description​

Defines if the component is visible. When changing this prop, the fade effect will be applied.

onStart​

Typefunc
Paramevent React.SyntheticEvent - The event source of the callback.

Description​

Sets the callback when animation start.

onEnd​

Typefunc
Paramevent React.SyntheticEvent - The event source of the callback.

Description​

Sets the callback when animation end.

to​

Typenumber
Default1.0

Description​

Sets the pixel position to define the end point of animation. Negative number are allowed.

Feedback​