We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64313b5 commit 31a890bCopy full SHA for 31a890b
docs/Recipes.md
@@ -93,7 +93,7 @@ import { useInView } from 'react-intersection-observer'
93
import { useSpring, animated } from 'react-spring'
94
95
const LazyAnimation = () => {
96
- const [ref, inView] = useInView(ref, {
+ const [ref, inView] = useInView({
97
rootMargin: '-100px 0',
98
})
99
const props = useSpring({ opacity: inView ? 1 : 0 })
0 commit comments