Slide Knob Button

Slide Knob Button – animated button UI design

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-motion

More Buttons

View all React Button Components