API Reference / @gtkx/animated / animated
Variable: animated
constanimated:Animated
Defined in: packages/animated/dist/animated.d.ts:11
Wraps a component so that its props accept springs and interpolations: animated(GtkLabel) is GtkLabel with every prop also taking a SpringValue or an Interpolation. Animated values are written to the widget on each frame without a React render. The wrapper of a given component is created once and reused.