BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/jolyui/ui/scroll-text

scroll-text

jolyui-ui/scroll-text
FreeComponent

jolyui/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by jolyui/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://jolyui.dev/r/scroll-text.json

Source

ui/scroll-text.tsxjolyui.dev/r/scroll-text.json · first 6 KB
1import {
2 type MotionValue,
3 motion,
4 useScroll,
5 useSpring,
6 useTransform,
7} from "motion/react";
8import * as React from "react";
9import { cn } from "@/lib/utils";
10
11// ============================================================================
12// TYPES
13// ============================================================================
14
15type ScrollEffect =
16 | "fadeIn"
17 | "fadeUp"
18 | "fadeDown"
19 | "parallax"
20 | "scale"
21 | "scaleUp"
22 | "scaleDown"
23 | "rotate"
24 | "blur"
25 | "slideLeft"
26 | "slideRight"
27 | "skew"
28 | "flip"
29 | "reveal";
30
31interface ScrollTextProps {
32 children: React.ReactNode;
33 effect?: ScrollEffect;
34 className?: string;
35 offset?: [string, string];
36 speed?: number;
37 spring?: boolean;
38 springConfig?: { stiffness?: number; damping?: number; mass?: number };
39 threshold?: [number, number];
40}
41
42interface ParallaxTextProps {
43 children: React.ReactNode;
44 className?: string;
45 speed?: number;
46 direction?: "up" | "down" | "left" | "right";
47 spring?: boolean;
48}
49
50interface ScrollRevealProps {
51 children: React.ReactNode;
52 className?: string;
53 direction?: "up" | "down" | "left" | "right";
54 delay?: number;
55 duration?: number;
56 distance?: number;
57 once?: boolean;
58}
59
60interface ScrollFadeProps {
61 children: React.ReactNode;
62 className?: string;
63 fadeIn?: boolean;
64 fadeOut?: boolean;
65 threshold?: [number, number];
66}
67
68interface ScrollScaleProps {
69 children: React.ReactNode;
70 className?: string;
71 from?: number;
72 to?: number;
73 threshold?: [number, number];
74}
75
76interface HorizontalScrollTextProps {
77 children: React.ReactNode;
78 className?: string;
79 speed?: number;
80 direction?: "left" | "right";
81 repeat?: number;
82}
83
84interface ScrollProgressTextProps {
85 text: string;
86 className?: string;
87 charClassName?: string;
88 stagger?: number;
89}
90
91interface StickyScrollTextProps {
92 children: React.ReactNode;
93 className?: string;
94 height?: string;
95 effect?: "fade" | "scale" | "blur" | "color";
96}
97
98// ============================================================================
99// SCROLL TEXT COMPONENT
100// ============================================================================
101
102const ScrollText = React.forwardRef<HTMLDivElement, ScrollTextProps>(
103 (
104 {
105 children,
106 effect = "fadeIn",
107 className,
108 offset = ["start end", "end start"],
109 speed = 1,
110 spring = false,
111 springConfig,
112 threshold = [0, 1],
113 },
114 forwardedRef,
115 ) => {
116 const internalRef = React.useRef<HTMLDivElement>(null);
117// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • ui/scroll-text.tsx

Facts

Registry
jolyui/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on jolyui/ui jolyui.dev Johuniq/jolyui on GitHub Raw registry item This item as JSON

More from jolyui/ui

All 199 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-prompt-boxai-prompt-boxjolyui/uiComponentsFree4 deps
animated-beamanimated-beamjolyui/uiComponentsFree1 dep
animated-tableanimated-tablejolyui/uiComponentsFree2 deps
animated-theme-toggleanimated-theme-togglejolyui/uiComponentsFree2 deps
animated-toastanimated-toastjolyui/uiComponentsFree2 deps
animated-tooltipanimated-tooltipjolyui/uiComponentsFree1 dep
bento-gridbento-gridjolyui/uiComponentsFreeno deps
buttonbuttonjolyui/uiComponentsFree3 deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex