BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/distorted-glass-demo

distorted-glass-demo

cult-ui/distorted-glass-demo
FreeComponent

cult/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/distorted-glass-demo.json

Source

registry/default/example/distorted-glass-demo.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/distorted-glass-demo.json · first 6 KB
1"use client"
2
3import { useRef } from "react"
4import { motion, useScroll, useTransform } from "motion/react"
5
6import { DistortedGlass } from "@/registry/default/ui/distorted-glass"
7
8export default function DistortedGlassDemo() {
9 const containerRef = useRef<HTMLDivElement>(null)
10 const { scrollYProgress } = useScroll({
11 target: containerRef,
12 offset: ["start start", "end end"],
13 })
14
15 // Transform values for parallax effects
16 const parallaxY = useTransform(scrollYProgress, [0, 1], [0, -200])
17 const parallaxYSlow = useTransform(scrollYProgress, [0, 1], [0, -100])
18 const parallaxYFast = useTransform(scrollYProgress, [0, 1], [0, -300])
19
20 return (
21 <div className="relative h-screen flex flex-col overflow-hidden">
22 {/* Fixed Distorted Glass Header */}
23
24 {/* Scrollable Content Area - Content scrolls behind the glass */}
25 <div ref={containerRef} className="flex-1 overflow-y-auto pt-[50px]">
26 <div className="w-full absolute top-0 left-0 right-0 -mt-[1px]">
27 <DistortedGlass className="h-48 w-full" />
28 </div>
29 {/* Section 1: Large Moving Text - Easy to see distortion */}
30 <section className="relative h-96 flex items-center justify-center bg-gradient-to-br from-primary/20 via-primary/10 to-transparent">
31 <div className="absolute inset-0 overflow-hidden">
32 <motion.div
33 className="absolute top-20 left-10 text-8xl font-black text-primary/30 select-none"
34 style={{ y: parallaxY }}
35 animate={{
36 x: [0, 50, 0],
37 }}
38 transition={{
39 duration: 8,
40 repeat: Infinity,
41 ease: "easeInOut",
42 }}
43 >
44 DISTORTED
45 </motion.div>
46 <motion.div
47 className="absolute top-40 right-10 text-8xl font-black text-primary/30 select-none"
48 style={{ y: parallaxYSlow }}
49 animate={{
50 x: [0, -50, 0],
51 }}
52 transition={{
53 duration: 10,
54 repeat: Infinity,
55 ease: "easeInOut",
56 }}
57 >
58 GLASS
59 </motion.div>
60 </div>
61 </section>
62
63 {/* Section 2: Grid of Moving Squares */}
64 <section className="relative h-[700px] flex items-center justify-center bg-gradient-to-br from-transparent via-primary/10 to-primary/20">
65// … truncated

What it pulls in

Other registry items

  • distorted-glass

Files it writes

  • registry/default/example/distorted-glass-demo.tsx

Facts

Registry
cult/ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsFree2 deps
ai-instructions-demoai-instructions-democult/uiComponentsFreeno deps
animated-numberanimated-numbercult/uiComponentsFree1 dep
animated-number-demoanimated-number-democult/uiComponentsFreeno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsFreeno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsFreeno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsFree1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsFreeno 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