0.1.0-beta.3
RU
Getting startedEssentialsTry itReference

Getting started›Introduction

Introduction

Real glass for the web. One WebGL material that bends light the same way on macOS and on Windows, wrapped in a single tag that works in any framework.

Get started Open the playground npm i @edinstvo/glass

Why not backdrop-filter

backdrop-filter blurs. It can't bend anything, so the edge of the element stays a flat cut. Glass here is a lens: light goes through a curved rim by Snell's law, colours split where the surface bends, and the middle stays calm.

How it stays fast

One WebGL context for the whole page. A frame is drawn only when something changes, so a still page costs nothing. Frost is computed once at a small size and reused. There are no dependencies, and the package is about 26 kB.