A liquid-fill toggle button β instead of a plain on/off switch, selecting a state (like Sleep, Do Not Disturb, or Personal) fills the button with a smooth, wave-like liquid animation. It's a small interaction detail that makes a status-selector feel tactile instead of static.
| π΄ Sleep | π Do Not Disturb | π€ Personal |
|---|---|---|
| Quiet hours state | Notification-free state | Custom/default state |
- π Liquid-fill wave animation on selection, not just a color swap
- π±οΈ Smooth transition between states β feels tactile, not robotic
- π§© Easy to adapt into any status/mode selector UI
- πͺΆ Lightweight β no animation libraries, just CSS + JS
πΈ This is the best kind of project for a GIF β the liquid fill motion is the whole point. Record the toggle switching between all 3 states and drop it in as
liquid-demo.gif.
git clone https://github.com/MALIK25252007/Liquid-button-Animation.git
cd Liquid-button-Animation
# open index.html in your browser