Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Fractal Glass

Fractal Glass

A premium WebGL refraction effect that splits the hero surface into shifting glass-like facets for brand launches and portfolio pages.

Three.js
DemoDemoDemo

Tune the Real Props

Overview

The hero can hold a refracted surface or a paragraph. Fractal Glass is for pages where the surface earns the paragraph.

Use it for premium heroes, AI/product launches, creative portfolios, and brand moments where the visual payoff justifies GPU work. It should make the site feel technically ambitious, not merely heavier.

The risk in production is budget. Keep meaningful content in HTML, cap DPR by device tier, reduce postprocessing on mobile, pause render loops offscreen, and ship a poster fallback that still feels intentional.


Usage Code

page
1import FractalGlass from "@/components/effects/fractal-glass";2 3const images = {4  blob: "https://pub-8abee449136941f5b0a1cd2c014534e9.r2.dev/vault-listing-images/assets-images/h-13.jpg",5};6 7export default function Home() {8  return (9    <>10       <FractalGlass11        imageSrc={images.blob}12        stripesFrequency={40}13        glassStrength={2.0}14        glassSmoothness={0.014}15        parallaxStrength={0.15}16        distortionMultiplier={8.0}17        edgePadding={0.12}18      />19    </>20  );21}

Example Production Use Case

A branding agency can use Fractal Glass in the hero of its homepage, placing a reel still or campaign image behind a row of refractive glass strips. Moving the pointer adds a slight parallax, so the image shifts through the facets while the agency's positioning line stays in HTML.

The outcome is proof of craft. The surface shows technical ambition in the first second, while the positioning line and contact link stay as ordinary text above it.


Best Used For

  • Premium brand heroes where refraction and facets can prove craft without burying the message.
  • WebGL surfaces that have a poster fallback, mobile simplification, and clear HTML content.
  • Fractal Glass gives the hero a proof-of-craft surface while preserving HTML copy.

Not For

Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.


Performance Budget

Cap DPR at 1.0 on touch/mobile and up to 1.5 on mid-range desktop. Pause Fractal Glass offscreen and in hidden tabs, reduce postprocessing before shipping, and keep texture sizes controlled.


Accessibility and Mobile

Keep meaningful content in HTML outside the canvas. On mobile, reduce shader quality and switch to a poster if the scene cannot hold frame rate.


Common Mistakes

  • Making Fractal Glass the only place the message exists.
  • Shipping the highest-cost visual tier on mobile without simplification or fallback.
  • Forgetting poster fallback and render-loop pause.

Changelog

Added a reduced-motion notice and removed a stray character left after a JSX comment.
Initial release

API Reference

PropTypeDefaultDescription
stripesFrequencynumber40Controls how many refractive glass strips are rendered.
glassStrengthnumber2Controls the intensity of the strip refraction.
glassSmoothnessnumber0.014Controls how smoothly neighboring refraction samples blend.
parallaxStrengthnumber0.15Controls pointer-reactive horizontal parallax.
distortionMultipliernumber8Amplifies parallax around distorted stripe regions.
edgePaddingnumber0.12Softens distortion near the media edges.

Questions, Answered.

What GPU budget should Fractal Glass use on mobile and desktop?

Refraction shaders are demanding, so cap DPR at 1.0 on mobile and up to 1.5 on desktop and reduce shader complexity or sample count on the lower tier. There is no quality prop, and DPR is capped at 2, so scale the refraction down with stripesFrequency and glassStrength rather than disabling it abruptly. Profile on real mobile GPUs, where heavy fragment shaders struggle most.

What poster fallback should replace Fractal Glass when WebGL fails?

Capture a still of the refracted surface so the fallback keeps the premium, faceted look without the live shader. The hero copy is HTML and reads regardless. Make that still good enough to stand on its own.

How should Fractal Glass pause when offscreen or in a hidden tab?

Run the shader on demand and stop it when the canvas is out of view or the tab is hidden, resuming on visibility. A live refraction pass is one of the most expensive things to leave running unseen. Visibility-gating it protects frame rate and battery.

Which content should stay outside the Fractal Glass canvas?

The paragraph the glass is meant to frame the headline, claim, and CTA stays in HTML in front of the surface, never inside the shader. The refraction earns attention for the copy; it should never replace it. Keep all actions as real DOM elements.

When should I choose a static image instead of Fractal Glass?

Choose a static treatment when the refraction is decorative, when performance or mobile reach is the priority, or when text legibility over the surface is at risk. If a still conveys the same crafted feel, prefer it. Reserve the live shader for pages where the surface genuinely earns the paragraph.

Can I adapt Fractal Glass to my brand and keep the hero readable?

Yes, adaptation work tunes the refraction, palette, and contrast so copy stays legible, with motion rules, a performance budget, fallback design, source handoff, and implementation notes. The component ships into and is owned by your codebase.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Progressive Bloom Valley
Pro
Three.jspostprocessing@react-three/drei

Progressive Bloom Valley

WebGL

Hero Banner Animated
Pro
GSAPThree.jsMotion

Hero Banner Animated

WebGL

Curved Plane
Pro
Three.js

Curved Plane

WebGL

Interactive Blur Reveal
WebGL Shader

Interactive Blur Reveal

WebGL