Skip to content

useAnimatedColor

useAnimatedColor(target, opts?): string

Defined in: react/use-animation.ts:76

Like useAnimatedValue but tweens a CSS colour, returning an rgb(...) string. Backed by the core ColorTween. Endpoints may be hex, rgb(), or a basic colour name.

string

TweenOptions = {}

string