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

EvilEye

evil-eye

Renders a fiery procedural eye whose pupil follows the pointer.

Usage

Basic usage

Flame evil eye background, the pupils shift with the cursor; the default flame color is --color-chart-3, and the light and shade are adaptive.

tsx
<div className="relative h-64 overflow-hidden rounded-xl bg-neutral-950">
  <EvilEye className="absolute inset-0" />
</div>

More fierce (constricted pupils + high intensity)

Reduce the pupilSize harvest seam and increase the intensity / flameSpeed to make the flame brighter and more restless.

tsx
<EvilEye
  className="absolute inset-0"
  pupilSize={0.35}
  intensity={2.2}
  flameSpeed={1.6}
/>

Customized eye color (dark blue)

eyeColor overrides the default fire orange; scale controls the proportion of eyes in the screen.

tsx
<EvilEye
  className="absolute inset-0"
  eyeColor="oklch(0.7 0.18 230)"
  glowIntensity={0.5}
  scale={0.9}
/>

Wallpaper level (pupil does not follow + slow fire)

pupilFollow=0 Make the pupils fixed and not follow the cursor. Slow fire + loud noise is suitable for silent background.

tsx
<EvilEye
  className="absolute inset-0"
  pupilFollow={0}
  flameSpeed={0.5}
  noiseScale={1.3}
/>

When to Use

Use it as a dramatic focal backdrop for a hero, 404 page, or launch screen where an eye should react to the pointer. Use DotPattern or GridPattern for tiled geometry, Spotlight for an abstract pointer focus, or Ripple for expanding waves.

Import

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

Props

NameTypeDefaultDescription
eyeColorstring--color-chart-3Main flame color; accepts any CSS color, including theme variables
backgroundColorstringTransparent, resolving to blackBackground color; usually inherited from the container
intensitynumber1.5Overall light intensity; 0.8-2.5 is recommended
pupilSizenumber0.6Pupil size; higher values look fuller and lower values narrower, with 0.2-1.0 recommended
irisWidthnumber0.25Iris (inner ring flame) width, recommended 0.1-0.4
glowIntensitynumber0.35Outer-ring glow strength; 0.1-0.6 is recommended
scalenumber0.8Eye scale; higher values occupy more of the viewport, with 0.5-1.2 recommended
noiseScalenumber1.0Flame-noise scale; higher values create finer detail, with 0.5-2.0 recommended
pupilFollownumber1.0Pointer-follow amplitude; 0 disables movement, while inertial interpolation returns the pupil toward center after the pointer leaves
flameSpeednumber1.0Flame flow speed, recommended 0.3-2.0
classNamestring-Forward the root container, the component defaults to block h-full w-full, and the size is determined by the container

Slots

SlotTypeDescription
fallbackReactNodeContent layered over the static fallback when reduced motion is preferred or WebGL is unavailable

Usage Guidelines

  • OGL/WebGL renders on the client. SSR and unavailable WebGL show the static fallback, so design the initial frame around that state.
  • Place the component in a relative overflow-hidden container with an explicit height such as h-64.
  • The flame reads best against a dark surface. On light pages, pass a dark backgroundColor or add a dark container background.
  • pupilFollow depends on pointer events and therefore has no visible effect on pointerless devices.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.13 0.01 60)" }}>
  <EvilEye
    className="absolute inset-0"
    intensity={1.5}
    pupilSize={0.6}
    glowIntensity={0.35}
    flameSpeed={1}
  />
</div>
PreviousDotFieldDecorationNextFaultyTerminal

On this page

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