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.
| 1 | # @colineapp/liquid-glass |
| 2 | |
| 3 | > Liquid Glass for the web: the rim refraction, light and motion of iOS 27's glass on any rounded element, with React bindings, menus that pour out of their button, and segmented tabs whose thumb clears into a lens. MIT. |
| 4 | |
| 5 | Version 0.2.0. Install: `npm install @colineapp/liquid-glass` |
| 6 |
| 7 | ### kickGlass(element, velocity) |
| 8 |
| 9 | - Type: `(element: Element | null, velocity: number) => void` |
| 10 | - Group: More exports |
| 11 |
| 12 | Kicks the swell of the glass around `element`: positive bulges it, negative makes it give, and it rings back to rest. A drawn-back menu does this to its button's glass. |
| 13 |
| 14 | ```ts |
| 15 | kickGlass(button, 22); |
| 16 | ``` |
| 17 |