whatisgithub

What is siri-glsl?

aaaa-zhen/siri-glsl — explained in plain English

Analysis updated 2026-05-18

36HTMLAudience · designerComplexity · 2/5LicenseSetup · easy

In one sentence

Three self-contained WebGL demos that recreate Apple's animated Siri wave and Liquid Glass visual effects, running directly in a browser.

Mindmap

mindmap
  root((siri-glsl))
    What it does
      Siri wave demo
      Liquid Glass demo
      Edge drag search demo
    Techniques
      Smooth min blob merging
      Signed distance functions
      Two pass Gaussian blur
    Use cases
      Study Apple style effects
      Reuse shader code
      Learn fragment shaders
    Audience
      Designers
      Frontend developers
    Setup
      No build step
      Open HTML in browser

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study how the Siri wave animation is built from smooth-min blob merging

USE CASE 2

See how Apple's Liquid Glass distortion effect works by pasting in your own screenshot

USE CASE 3

Recreate the iPadOS edge-drag search bar animation for your own project

USE CASE 4

Learn fragment shader techniques like signed distance functions and two-pass Gaussian blur

What is it built with?

WebGLGLSLHTML

How does it compare?

aaaa-zhen/siri-glslicydotdev/pocketamyraxvpn-main/amyraxvpn-relay
Stars363635
LanguageHTMLHTMLHTML
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedesignerdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Free to use, modify, and distribute for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

This repository holds a small collection of single-file WebGL demos that recreate the animated visual effects Apple introduced with its new Siri design and the Liquid Glass interface style. GLSL is the programming language used to write shaders, which are programs that run on the graphics card to produce visual effects. WebGL brings that capability to web browsers, so these demos run without installing anything: you just open the HTML file in a browser. There are three demos included. The first recreates the Siri wave animation, with fluid coloured blobs that merge smoothly into each other, spectral colour scatter, glowing lines, and a spring-like bounce when the animation settles. The second recreates Apple's Liquid Glass material, a translucent surface that bends and tints whatever is behind it. You can paste a screenshot into that demo and see how the glass distorts it in real time, and all the visual parameters are adjustable. The third recreates the animation that appears on iPadOS when you drag from the screen edge to summon the search bar: rounded blobs that merge as you drag, then snap together into a dark rounded rectangle when you release. All three demos use fragment shaders, meaning the entire image is computed pixel by pixel on the graphics card rather than drawn with traditional shapes. The techniques include smooth-min merging for the blob shapes, signed distance functions for the geometry, Gaussian blur in two passes for the frosted glass look, and damped spring math for the springy settle animations. Each file is a self-contained HTML file with no external libraries or build steps. Open any of the three files in a modern browser and the demo runs immediately. The project is MIT licensed.

Copy-paste prompts

Prompt 1
Explain how the Siri wave demo uses smooth-min merging to blend the colored blobs.
Prompt 2
Show me how the Liquid Glass demo distorts a pasted screenshot in real time.
Prompt 3
Walk me through the signed distance functions used in these shaders.
Prompt 4
Help me adapt the Liquid Glass fragment shader for my own web project.

Frequently asked questions

What is siri-glsl?

Three self-contained WebGL demos that recreate Apple's animated Siri wave and Liquid Glass visual effects, running directly in a browser.

What language is siri-glsl written in?

Mainly HTML. The stack also includes WebGL, GLSL, HTML.

What license does siri-glsl use?

Free to use, modify, and distribute for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is siri-glsl to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is siri-glsl for?

Mainly designer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.