Slide Knob Button

Free React Button Component built with Framer Motion, WebGL, GLSL, Tailwind CSS.
A pill button with a round knob of liquid glass that slides to the right. Press it or drag the knob and it glides to the far end on a soft spring while the label slides over to the left, and the knob’s small square turns into a check that draws itself on; press again and it slides back. The knob is real glass drawn with WebGL: as it passes over the label the letters bend and magnify through it, with a light frost, a glint where its rim faces the light and a faint line of thickness. It stretches a little in the direction it travels, like a drop of liquid, and settles as it stops; drag it past halfway and let go to snap across. A real switch: Space or Enter toggles it and screen readers hear its state. Colours, label and size are props.
Installation
npm install framer-motionMore Buttons
- Liquid Glass Gradients – React Button Component
- Tactile Universe V2 – React Button Component
- 3D Liquid Button – React Button Component
- Border Beam Buttons Presets – React Button Component
- Stylish Button 05 – React Button Component
- Shiny Buttons – React Button Component