UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
types
/
value
/
use-on-change.d.ts
4 lines
(3 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
import
{
MotionValue
,
Subscriber
}
from
"./"
;
export
declare
function
useOnChange<T>(
value
:
MotionValue
<T> |
number
|
string
,
callback
:
Subscriber
<T>):
void
;
export
declare
function
useMultiOnChange
(
values
:
MotionValue
[],
handler
: () =>
void
):
void
;