import { useStore } from "../store/useStore"; const Link = ({ href, children, }: { href: string; children: React.ReactNode; }) => { return ( {children} ); }; export const Hero = () => { const [index, setIndex] = useStore((state) => [state.index, state.setIndex]); return (
12+ 3D Motion Graphics
VARIATIONS
{Array.from({ length: 3 }).map((_, key) => { return (
{ setIndex(key); }} > {key + 1}
); })}
ORIGAMI
©️ 2024 Codrops & deadrabbbbit
webgl
three.js
R3F
3D
GitHub Article
); };