正在加载视频...
视频加载失败
Prototyped a balance slider today ✨ How do you like your coffee?
543,988 次观看 • 2 年前 •via X (Twitter)
10 条评论

Had to see if I could create a CSS-only version 🤓 Love the design 👏

amazing work. now make a slider for real people (without milk)

haha, coffee or coffee?

This is nice and smooth and there's a lot to like, but can I ask a dumb question: why are you moving the text around vertically? Is it to make it more fun/reactive? I worry it might not be worth the distraction UX wise

Not a dumb question at all! Was actually approaching this from a UX perspective as not moving the text meant that the slider and text would overlap.

Imagine being the human having to execute on that order. a 69-31 split. Gonna need some precise measuring equipment in the kitchen lol.

why imagine a human at all 🤭

This looks awesome 🤩

That’s freaking gorgeous, nice work! What’s this built in? How’d you get the text to shuffle up?

thank you :) built in react using framer-motion, and I animate the y position of the text when the drag handle gets close to the edges ⚡️

