BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ericts-ui/vertical-scene

Vertical Scene Gallery

ericts-ui/vertical-scene
FreeBlock

A direction-aware gallery that reveals later scenes from below and earlier scenes from above with a paired vertical image transition.

Install it

npx shadcn@latest add https://ui.ericts.com/r/vertical-scene.json

Source

registry/base/blocks/vertical-scene.tsxui.ericts.com/r/vertical-scene.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import { AnimatePresence, motion, useReducedMotion } from "motion/react";
5
6import {
7 SlidingList,
8 type SlidingListItem,
9} from "@/components/ui/sliding-list";
10import { cn } from "@/lib/utils";
11
12import "./vertical-scene.css";
13
14export type VerticalSceneImage = {
15 src: string;
16 alt: string;
17};
18
19export type VerticalSceneItem = {
20 /** Stable value used by controlled state and callbacks. */
21 value: string;
22 /** Short label rendered in the scene selector. */
23 label: string;
24 /** Main heading displayed over the active scene. */
25 title: string;
26 /** Optional supporting copy below the heading. */
27 description?: string;
28 /** Optional context displayed above the heading. */
29 context?: string;
30 image: VerticalSceneImage;
31 imagePosition?: React.CSSProperties["objectPosition"];
32};
33
34export interface VerticalSceneProps
35 extends Omit<React.ComponentPropsWithoutRef<"section">, "onChange"> {
36 items: readonly VerticalSceneItem[];
37 /** Controlled selected scene value. */
38 value?: string;
39 /** Initial selected scene value for uncontrolled usage. */
40 defaultValue?: string;
41 /** Called when a scene is selected. */
42 onValueChange?: (value: string, item: VerticalSceneItem) => void;
43 /** Accessible label for the scene selector. */
44 selectorLabel?: string;
45 /** Persistent label displayed in the stage header. */
46 stageLabel?: string;
47 /** Message displayed when no scenes are provided. */
48 emptyLabel?: string;
49};
50
51type SceneDirection = -1 | 0 | 1;
52
53type SceneTransitionState = {
54 value: string;
55 index: number;
56 direction: Exclude<SceneDirection, 0>;
57};
58
59const MEDIA_EASE = [0.77, 0, 0.18, 1] as const;
60const CONTENT_EASE = [0.22, 1, 0.36, 1] as const;
61const MEDIA_DURATION = 0.56;
62const CONTENT_ENTER_DURATION = 0.5;
63const CONTENT_ENTER_DELAY = 0.12;
64const CONTENT_EXIT_DURATION = 0.22;
65
66const mediaLayerVariants = {
67 enter: (direction: SceneDirection) => ({
68 transform: `translate3d(0, ${direction * 100}%, 0)`,
69 }),
70 center: { transform: "translate3d(0, 0%, 0)" },
71 exit: (direction: SceneDirection) => ({
72 transform: `translate3d(0, ${direction * -5}%, 0)`,
73 }),
74};
75
76const mediaImageVariants = {
77 enter: (direction: SceneDirection) => ({
78 transform:
79 direction === 0
80 ? "translate3d(0, 0%, 0) scale(1)"
81 : `translate3d(0, ${direction * -100}%, 0) scale(1.04)`,
82 }),
83 center: { transform: "translate3d(0, 0%, 0) scale(1)" },
84 exit: { transform: "translate3d(0, 0%, 0) scale(1.02)" },
85// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • https://ui.ericts.com/r/sliding-list.json

Files it writes

  • registry/base/blocks/vertical-scene.tsx
  • registry/base/blocks/vertical-scene.css

Facts

Registry
ericts-ui
Type
registry:block
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on ericts-ui ui.ericts.com EricTsai83/ericts-ui on GitHub Raw registry item This item as JSON

More from ericts-ui

All 38 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Ripple Scene Galleryripple-sceneericts-uiBlocksFreeno deps · 2 files
Scroll Expand & Focus Heroscroll-expandericts-uiBlocksFreeno deps · 2 files

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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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