Motion & effects / Animated backgrounds
Plus Crosshair Grid Markers
Small black plus signs at the column lines under the header, which reveal the 12-column grid. They sit on the pale canvas above a ghostly large 3D shape.
Rebuilt from lusion.co in the Periwinkle Studio Float style.
npx shadcn@latest add https://justyoink.it/r/periwinkle-studio-float/blocks/plus-crosshair-grid.json
Looks exactly like lusion.co: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/periwinkle-studio-float/mine/plus-crosshair-grid.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: columns (number of plus markers, default 5), heading, caption, className. Markers fade in when the section scrolls into view and sit above a soft ghostly shape on the canvas.
components/plus-crosshair-grid.tsx
import { useEffect, useRef, useState } from "react"; type Props = { columns?: number; heading?: string; caption?: string; className?: string; }; function Plus({ className = "" }: { className?: string }) { return ( <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" className={className}> <path d="M8 1v14M1 8h14" stroke="currentColor" strokeWidth="1.6" fill="none" /> </svg> ); } export default function PlusCrosshairGridMarkers({ columns = 5, heading = "Selected Projects", caption = "A COLLECTION OF PLAYFUL INTERFACES MADE FOR CURIOUS BRANDS AND BOLD SMALL TEAMS.", className = "", }: Props) { const ref = useRef<HTMLDivElement>(null); const [visible, setVisible] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; const io = new IntersectionObserver( ([e]) => setVisible(e.isIntersecting), { threshold: 0.1 } ); io.observe(el); return () => io.disconnect(); }, []); const marks = Array.from({ length: columns }); return ( <section ref={ref} className={`relative isolate overflow-hidden bg-canvas text-ink font-sans ${className}`} > {/* ghostly 3D shape */} <div aria-hidden="true" className="pointer-events-none absolute left-[42%] top-[8%] -z-10 h-[520px] w-[220px] -translate-x-1/2 rounded-[999px_999px_200px_200px] bg-[radial-gradient(60%_50%_at_40%_30%,var(--color-paper),transparent_75%)] opacity-70 blur-xl" /> <div aria-hidden="true" className="pointer-events-none absolute left-[46%] top-[30%] -z-10 h-[360px] w-[160px] rounded-full bg-canvas-deep opacity-60 blur-2xl" /> <div className="mx-auto max-w-[1296px] px-4 md:px-0"> <div className={`flex justify-between pt-4 transition-opacity duration-fade-rise ease-fade-rise motion-reduce:transition-none ${ visible ? "opacity-100" : "opacity-0" }`} > {marks.map((_, i) => ( <Plus key={i} className="text-ink" /> ))} </div> <div className="flex flex-col gap-6 pb-12 pt-24 md:flex-row md:items-end md:justify-between md:pt-48"> <h2 className="text-[56px] font-light leading-none tracking-[-0.04em] md:text-[104px]"> {heading} </h2> <p className="max-w-[300px] text-[12px] leading-[18px] uppercase">{caption}</p> </div> <div className="grid grid-cols-1 gap-6 pb-16 md:grid-cols-2"> <div className="aspect-[4/3] rounded-card bg-night bg-[radial-gradient(70%_60%_at_30%_30%,var(--color-violet),transparent)]" /> <div className="aspect-[4/3] rounded-card bg-[linear-gradient(160deg,var(--color-coral),var(--color-electric-blue))]" /> </div> </div> </section> ); }import { useEffect, useRef, useState } from "react"; type Props = { columns?: number; heading?: string; caption?: string; className?: string; }; function Plus({ className = "" }: { className?: string }) { return ( <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" className={className}> <path d="M8 1v14M1 8h14" stroke="currentColor" strokeWidth="1.6" fill="none" /> </svg> ); } export default function PlusCrosshairGridMarkers({ columns = 5, heading = "Selected Projects", caption = "A COLLECTION OF PLAYFUL INTERFACES MADE FOR CURIOUS BRANDS AND BOLD SMALL TEAMS.", className = "", }: Props) { const ref = useRef<HTMLDivElement>(null); const [visible, setVisible] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; const io = new IntersectionObserver( ([e]) => setVisible(e.isIntersecting), { threshold: 0.1 } ); io.observe(el); return () => io.disconnect(); }, []); const marks = Array.from({ length: columns }); return ( <section ref={ref} className={`relative isolate overflow-hidden bg-background text-foreground font-sans ${className}`} > {/* ghostly 3D shape */} <div aria-hidden="true" className="pointer-events-none absolute left-[42%] top-[8%] -z-10 h-[520px] w-[220px] -translate-x-1/2 rounded-[999px_999px_200px_200px] bg-[radial-gradient(60%_50%_at_40%_30%,var(--color-card),transparent_75%)] opacity-70 blur-xl" /> <div aria-hidden="true" className="pointer-events-none absolute left-[46%] top-[30%] -z-10 h-[360px] w-[160px] rounded-full bg-popover opacity-60 blur-2xl" /> <div className="mx-auto max-w-[1296px] px-4 md:px-0"> <div className={`flex justify-between pt-4 transition-opacity duration-periwinkle-fade-rise ease-periwinkle-fade-rise motion-reduce:transition-none ${ visible ? "opacity-100" : "opacity-0" }`} > {marks.map((_, i) => ( <Plus key={i} className="text-foreground" /> ))} </div> <div className="flex flex-col gap-6 pb-12 pt-24 md:flex-row md:items-end md:justify-between md:pt-48"> <h2 className="text-[56px] font-light leading-none tracking-[-0.04em] md:text-[104px]"> {heading} </h2> <p className="max-w-[300px] text-[12px] leading-[18px] uppercase">{caption}</p> </div> <div className="grid grid-cols-1 gap-6 pb-16 md:grid-cols-2"> <div className="aspect-[4/3] rounded-xl bg-foreground bg-[radial-gradient(70%_60%_at_30%_30%,var(--color-periwinkle-violet),transparent)]" /> <div className="aspect-[4/3] rounded-xl bg-[linear-gradient(160deg,var(--color-periwinkle-coral),var(--color-periwinkle-electric-blue))]" /> </div> </div> </section> ); }
Quality checks
Automated, in a real browser · today- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.