Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
Micro-interactions3 min read

Tactile Glassmorphism Spring Button with Refraction

Direct Definition & Architecture

A tactile glass button pairs a translucent canvas-drawn frosted layer with specular highlights and second-order spring scaling. On press, the specular highlight shifts while the pill compresses with natural damping.

Live .bexode760 × 380

Move across the button and release a press.

Live inputs

Technical Specifications

Scene format
One .exode file
Live inputs
label, accent, tint
Emitted event
press
Motion
Specular glass + spring press

Interaction Phases

IdleTranslucent pill over a slowly moving mesh gradient.
HoverA cursor-lit highlight moves across the glass rim.
PressedThe pill compresses and the shadow tightens.
ReleaseA ripple expands from the pointer and press is emitted.

The scene keeps one Idle state. These phases are driven by its inputs and pointer events; the same values appear in the code below.

Use the scene

glass-button.jsx
import { ExodeUICanvas } from 'exodeui';

// glass-button.bexode goes in /public
export function GlassButton() {
  return (
    <ExodeUICanvas
      src="/examples/live/glass-button.bexode"
      fit="Layout"
      autoPlay
      interactive
      inputs={{
        label: 'Open workspace',
        accent: '#8b5cf6',
        tint: '#22d3ee',
        bg: '#0a0913',
        ink: '#f8f7ff',
      }}
      onTrigger={(name) => {
        // fires: 'press'
      }}
      style={{ width: '100%', height: 380 }}
    />
  );
}

This snippet loads /examples/live/glass-button.bexode with the same inputs shown in the live stage.

Architectural Breakdown

Standard flat buttons feel lifeless on high-density displays.

This glass component features dynamic specular border gradients that refract ambient page light.

Spring physics ensure instantaneous response on pointer events without CSS transition latency.

Frequently Asked Questions

Explore Related Motion Guides & Tooling

Build your next living interface today.

Design fluid physics and visual logic in ExodeUI and export directly to React, Swift, and Flutter.

Try for free