Liquid Glass for the web: the rim refraction, light and motion of iOS 27 glass on any rounded element. React bindings and pill tabs. MIT.
| 4 |
| 5 | Version 0.1.0. Install: `npm install @colineapp/liquid-glass`. npm: https://www.npmjs.com/package/@colineapp/liquid-glass. Playground: https://liquid-glass.coline.space. |
| 6 |
| 7 | ### magnify(factor) |
| 8 |
| 9 | - Type: `(factor: number) => void` |
| 10 | - Group: The glass handle |
| 11 |
| 12 | Magnifies what is beneath the glass about its centre, as a raised lens does (1 for none), and sharpens it so it doesn't come out soft. Cheap enough to call every frame. Needs refraction. |
| 13 |
| 14 | ```ts |
| 15 | glass.magnify(1.1); |
| 16 | ``` |
| 17 |