Pular para o conteúdo principal

Slide

Import

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

Properties

children

Typenode | elementType
Defaultnull

Description

Sets the children.

direction

Type
Enum of:
  • Slide.directions.vertical
  • Slide.directions.horizontal
DefaultSlide.directions.horizontal

Description

Direction the child node will enter from.

duration

Type
Enum of:
  • Slide.durations.ultraSlow
  • Slide.durations.extraSlow
  • Slide.durations.slow
  • Slide.durations.normal
  • Slide.durations.fast
  • Slide.durations.extraFast
DefaultSlide.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

Description

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

in

Typebool
Defaultfalse

Description

Triggers the enter or exit states.

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
Default0

Description

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

Feedback