UNPKG
motion-plus-vue
Version:
latest (1.8.1)
1.8.1
1.8.0
1.7.0
1.6.0
1.5.1
1.5.0
1.5.0-beta.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.2.0-beta.1
1.2.0-alpha.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.1.0
0.0.2
0.0.1
Motion Plus Vue
motion-plus-vue
/
dist
/
components
/
Cursor
/
magnetic
/
use-magnetic-pull.d.ts
7 lines
(6 loc)
•
214 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
MotionValue
}
from
'motion-v'
;
import
{
Ref
}
from
'vue'
;
export
declare
function
useMagneticPull
(
ref
:
Ref
<
HTMLElement
|
null
>,
pull
?:
number
): {
x
:
MotionValue
<
number
>;
y
:
MotionValue
<
number
>; };