distorted-glass
cult-ui/distorted-glassUnverifiedComponent
A glass morphism effect component using SVG filters with fractal noise to create visual transitions between sections
Install it
npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/distorted-glass.jsonSource
1"use client"23import { cn } from "@/lib/utils"45export const DistortedGlass = ({ className }: { className?: string }) => {6 return (7 <>8 <div9 className={cn(10 "relative hidden h-[50px] w-[360px] overflow-hidden rounded-b-2xl lg:w-[600px] xl:block xl:w-full",11 className12 )}13 >14 <div className="pointer-events-none absolute bottom-0 z-10 size-full overflow-hidden rounded-b-2xl border border-[#f5f5f51a]">15 <div className="glass-effect size-full"></div>16 </div>17 <svg>18 <title>Distorted Glass</title>19 <defs>20 <filter id="fractal-noise-glass">21 <feTurbulence22 type="fractalNoise"23 baseFrequency="0.12 0.12"24 numOctaves="1"25 result="warp"26 ></feTurbulence>27 <feDisplacementMap28 xChannelSelector="R"29 yChannelSelector="G"30 scale="30"31 in="SourceGraphic"32 in2="warp"33 />34 </filter>35 </defs>36 </svg>37 </div>3839 <style jsx>{`40 .glass-effect {41 background: rgba(0, 0, 0, 0.2);42 background: repeating-radial-gradient(43 circle at 50%50%,44 rgb(255 255 255 / 0),45 rgba(255, 255, 255, 0.2) 10px,46 rgb(255 255 255) 31px47 );48 filter: url(#fractal-noise-glass);49 background-size: 6px 6px;50 backdrop-filter: blur(0px);51 }52 `}</style>53 </>54 )55}
Files it writes
More from cult/ui
All 157 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ai-instructionsai-instructions | cult/ui | Components | Unverified | 2 deps | |
| ai-instructions-demoai-instructions-demo | cult/ui | Components | Unverified | no deps | |
| animated-numberanimated-number | cult/ui | Components | Unverified | 1 dep | |
| animated-number-demoanimated-number-demo | cult/ui | Components | Unverified | no deps | |
| bg-animate-buttonbg-animate-button | cult/ui | Components | Unverified | no deps | |
| bg-animate-button-demobg-animate-button-demo | cult/ui | Components | Unverified | no deps | |
| bg-animated-fractal-dot-gridbg-animated-fractal-dot-grid | cult/ui | Components | Unverified | 1 dep | |
| bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-demo | cult/ui | Components | Unverified | no deps |
