useScrollytelling
Context consumer. Returns the timeline. Must be used within a Scrollytelling.Root.
Usage
import { useScrollytelling } from "@bsmnt/scrollytelling";
// ...
const { timeline } = useScrollytelling();
useEffect(() => {
if (!timeline) return;
const doSomething = () => {
// something