import React, { useRef } from "react"; import { Parallax, ParallaxLayer, IParallax } from "@react-spring/parallax"; import Introduction from "../shared/components/animated/Introduction"; // Little helpers ... const url = (name: string, wrap = false) => `${ wrap ? "url(" : "" }https://awv3node-homepage.surge.sh/build/assets/${name}.svg${ wrap ? ")" : "" }`; function Animated() { const parallax = useRef(null!); return (
{/* section 1 */} parallax.current.scrollTo(1)} style={{ display: "flex", alignItems: "center", justifyContent: "center", }} > parallax.current.scrollTo(2)} style={{ display: "flex", alignItems: "center", justifyContent: "center", }} > parallax.current.scrollTo(0)} >
); } export default Animated;