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.

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>
  );
}

Quality checks

Automated, in a real browser · today
—

More from Periwinkle Studio Float

The whole style →

Tilted Panel Loader

Animated graphics

Floating Pill Header

Headers & nav bars

Oversized Section Heading with Side Blurb

Feature sections

Rounded Project Tile

Cards

Dot-Separated Category Tags

Badges & tags

Persistent WebGL Backdrop

Animated backgrounds