Home
Docs
InfinityFX
©Copyright2016-2025 InfinityFX. All rights reserved.
InfinityFX®
Lively
v4.0.10
Getting started
Components
Animatable
Animate
LayoutGroup
Morph
Typable
Hooks
useAudio
useLink
usePath
useReducedMotion
useScroll
useSpring
useTrigger
useViewport
useVisible

useLink

Creates a reactive Link which allows for performant dynamic animations based on the Link's value.

Importing

1
import { useLink } from '@infinityfx/lively/hooks';

Usage

Call signature

1
const link = useLink<T = any>(initial)

Parameters

initial:any

The initial value of the returned Link.

Returns

link:Link<any>

A link which can be used inside the animate property to create an animation.