Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liammartens/helpful-motion-hooks


https://github.com/liammartens/helpful-motion-hooks

Last synced: 7 days ago
JSON representation

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)
```