Gooey toggle that stretches its knob

A blue switch whose white knob stretches like liquid as you drag it, pulling away from the edge before snapping across, with sound.

By Arek (@arknow91) · View original post

Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More toggle & switch animations in React →

Prompt

Build a gooey toggle in React + Framer Motion with an SVG goo filter (feGaussianBlur + feColorMatrix alpha threshold).…

Free forever. Available for React, SwiftUI, React Native and HTML/CSS.

Build it with

Motion details

Spring
stiffness 520, damping 24
Details
Reduced-motion fallback · Blur · Gesture-driven

Keyframes

Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Six keyframes from Gooey toggle that stretches its knob

Questions

How do I build the gooey toggle that stretches its knob in React?
Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
What are the motion details?
Spring: stiffness 520, damping 24. Details: Reduced-motion fallback · Blur · Gesture-driven.
Who designed this animation?
Arek (@arknow91) shared it on X. Kites Motion links back to the original post.

More from Arek

All by @arknow91 →