Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

ProgressiveBlur

progressive-blur

Applies a directional multi-step blur gradient at a content edge.

Usage

Bottom gradually blurred

Absolutely covers the content, the closer to the bottom, the blurrier it becomes. It is often used to fade out/mask the copy area of the content.

Progressive Blur · bottom
tsx
<div className="relative overflow-hidden rounded-[var(--radius)] border border-border">
  {/* content */}
  <ProgressiveBlur side="bottom" />
</div>

Top progressive blur

side Switches the blur enhancement direction. The top is the most blurry, which is suitable for the top bar adsorption scene.

Progressive Blur · top
tsx
<ProgressiveBlur side="top" />

Horizontal · The right side is blurred

left / right does horizontal progressive blur, often used for edge hints in horizontal sliding lists.

Progressive Blur · right
tsx
<ProgressiveBlur side="right" />

Stronger layering

layers increases the number of layers to make the transition smoother, and blur increases the basic blur amount.

layers=8 · blur=2
tsx
<ProgressiveBlur side="bottom" layers={8} blur={2} />

When to Use

Use it to feather one edge of an image wall, long list, or horizontal scroller with a progressive blur overlay. For animated borders, use BorderBeam or ShineBorder; for pointer glare, use GlareHover; for magnification, use Lens.

Import

ts
import { ProgressiveBlur } from "@hulianui/ui"

Props

NameTypeDefaultDescription
side"top" | "bottom" | "left" | "right""bottom"The direction of blur enhancement, this side is the most blurry.
layersnumber5Number of layers; more layers produce a smoother transition
blurnumber1Base blur in pixels, doubled for each successive layer
classNamestring-Passthrough to the root overlay.

Usage Guidelines

  • The parent container must be position: relative and overflow-hidden, and the overlay must be absolutely positioned to cover this side, otherwise the blur layer will overflow or be positioned incorrectly.
  • Depends on backdrop-filter, it needs to be applied on the same layer with actual content to see the effect (there is nothing blurry on the empty background).

Related

BorderBeam · ShineBorder · GlareHover · Lens · AnimatedBeam · OrbitingCircles

Playground

Progressive Blur · bottom
<div className="relative overflow-hidden">
  {/* content */}
  <ProgressiveBlur side="bottom" />
</div>
PreviousOrbitingCirclesDecorationNextCardSpotlight

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Usage Guidelines
    • Related
  • Playground