BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vault-hyperiux/chess-grid-transition

Chess Grid Transition

vault-hyperiux/chess-grid-transition
FreeComponent

Staggered fullscreen grid wipe that sweeps blocks across the viewport during route changes

Install it

npx shadcn@latest add https://vault.hyperiux.com/r/chess-grid-transition.json

Source

index.tsxvault.hyperiux.com/r/chess-grid-transition.json
1// Built using Hyperiux Vault: https://vault.hyperiux.com
2
3'use client'
4
5import { TransitionRouter } from 'next-transition-router'
6import React, { useEffect, useRef, useState, type ReactNode } from 'react'
7import gsap from 'gsap'
8
9function prefersReducedMotion() {
10 if (typeof window === 'undefined') return false
11 return window.matchMedia?.('(prefers-reduced-motion: reduce)')?.matches ?? false
12}
13
14const DEFAULT_GRID_SIZE = 8
15const DEFAULT_COLOR = '#ff5f00'
16
17function clampNumber(value: number | undefined, min: number, max: number, fallback: number): number {
18 const next = Number(value)
19 if (!Number.isFinite(next)) return fallback
20 return Math.min(max, Math.max(min, next))
21}
22
23interface ChessGridTransitionProps {
24 children?: ReactNode
25 duration?: number
26 gridSize?: number
27 color?: string
28}
29
30export default function ChessGridTransition({
31 children,
32 duration = 1,
33 gridSize = DEFAULT_GRID_SIZE,
34 color = DEFAULT_COLOR,
35}: ChessGridTransitionProps) {
36 const wrapperRef = useRef<HTMLDivElement | null>(null)
37 const gridRef = useRef<HTMLDivElement | null>(null)
38
39 const [mounted, setMounted] = useState(false)
40 const [isMobile, setIsMobile] = useState(false)
41 const [isTablet, setIsTablet] = useState(false)
42
43 const safeDuration = clampNumber(duration, 0.25, 3, 1)
44 const cols = Math.round(clampNumber(gridSize, 4, 16, DEFAULT_GRID_SIZE))
45 const desktopRows = Math.max(2, Math.round(cols * 0.5))
46 const mobileRows = Math.max(4, Math.round(cols * 1.125))
47 const tabletRows = Math.max(4, Math.round(cols * 1.25))
48 const overlap = 2
49
50 useEffect(() => {
51 const updateViewport = () => {
52 const width = window.innerWidth
53 setIsMobile(width <= 639)
54 setIsTablet(width > 639 && width <= 1025)
55 }
56
57 updateViewport()
58 window.addEventListener('resize', updateViewport)
59 return () => window.removeEventListener('resize', updateViewport)
60 }, [])
61
62 const rows = isMobile ? mobileRows : isTablet ? tabletRows : desktopRows
63
64 const getRowCells = (cells: HTMLCollection, rowIndex: number) => {
65 const rowCells = []
66 for (let col = 0; col < cols; col++) {
67 rowCells.push(cells[rowIndex * cols + col])
68 }
69 return rowCells
70 }
71
72 const buildAnimation = (tl: gsap.core.Timeline, cells: HTMLCollection, direction = 1) => {
73 const rowsArr = Array.from({ length: rows }, (_, i) => i)
74
75 rowsArr.forEach((rowIndex, rowOrderIndex) => {
76 const rowCells = getRowCells(cells, rowIndex)
77
78 rowCells.forEach((cell, colIndex) => {
79// … truncated

What it pulls in

npm packages

  • gsap
  • next-transition-router

Facts

Registry
vault-hyperiux
Type
registry:component
Access
Free
Files written
0
Licence
MPL-2.0
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

vault.hyperiux.com Hyperiux-Immersion-Labs/hyperiux-components on GitHub Raw registry item This item as JSON

More from vault-hyperiux

All 120 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
3D Portfolio Slider3d-portfolio-slidervault-hyperiuxComponentsFree3 deps
Animated FAQanimated-faqvault-hyperiuxComponentsFree2 deps
Animated Formanimated-formvault-hyperiuxComponentsFree1 dep
Animated Modalanimated-modalvault-hyperiuxComponentsFree1 dep
Tabsanimated-tabsvault-hyperiuxComponentsFree1 dep
Animated Toggleanimated-togglevault-hyperiuxComponentsFreeno deps
Aperture Transitionaperture-transitionvault-hyperiuxComponentsFree2 deps
Arrow Fill Buttonarrow-fill-buttonvault-hyperiuxComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex