Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liammartens/helpful-motion-hooks
https://github.com/liammartens/helpful-motion-hooks
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/liammartens/helpful-motion-hooks
- Owner: LiamMartens
- Created: 2023-02-19T15:25:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T19:18:49.000Z (12 months ago)
- Last Synced: 2024-10-18T16:13:12.793Z (18 days ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# helpful-motion-hooks
Just some helpful framer motion hooks## useParallax
```jsx
import { useParallax } from 'helpful-motion-hooks'const parallaxRef = useRef()
const [ty, invty] = useParallax(ref)
```## useRelativeMouseFollow
```jsx
import { useRelativeMouseFollow } from 'helpful-motion-hooks'const followRef = useRef()
const [rx, ry] = useRelativeMouseFollow(ref)
```