Skip to content

@gtkx/react / AdwTimedAnimationProps

Type Alias: AdwTimedAnimationProps

AdwTimedAnimationProps = AnimationBaseProps & object

Defined in: packages/react/src/jsx.ts:71

Props for a timed (duration-based) animation using Adw.TimedAnimation.

Type Declaration

NameTypeDescriptionDefined in
alternate?booleanWhether to alternate direction on each repeatpackages/react/src/jsx.ts:83
delay?numberDelay before starting the animation in millisecondspackages/react/src/jsx.ts:77
duration?numberAnimation duration in milliseconds (default: 300)packages/react/src/jsx.ts:73
easing?Adw.EasingEasing function for the animation curve (default: EASE_OUT_CUBIC)packages/react/src/jsx.ts:75
repeat?numberNumber of times to repeat the animation (0 = no repeat, -1 = infinite)packages/react/src/jsx.ts:79
reverse?booleanWhether to play the animation in reversepackages/react/src/jsx.ts:81

Example

tsx
<AdwTimedAnimation
  initial={{ opacity: 0 }}
  animate={{ opacity: 1 }}
  duration={300}
  easing={Adw.Easing.EASE_OUT_CUBIC}
  animateOnMount
>
  <GtkLabel label="Fade in" />
</AdwTimedAnimation>