Skip to content

API Reference / @gtkx/animated / animated

Variable: animated

const animated: 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.

Released under the MPL-2.0 License.