glass-elements GitHub ↗

Liquid glass for the web.

Real refraction · spring physics · any browser · one file

PhotosMusicMaps
Wi-FiHome 5G
BluetoothAirPods
☀
CancelContinue
AuroraNeonPeacockYour photo

drag the wallpaper · press and hold a control

Use it

<script type="module" src="https://kevin9327.github.io/glass-elements/glass.js"></script>

<glass-button>Continue</glass-button>
<glass-switch checked></glass-switch>
<glass-slider value="0.6"></glass-slider>
<glass-segmented><span selected>Day</span><span>Week</span></glass-segmented>
<glass-panel draggable-panel>…</glass-panel>
Copy snippet

What's inside