短评 · ·

X 归档 2023-07-18

2 条动态 · 图 0 · 视频 2
#CSS Radiento

a bento box radio group design with View Transition animations plus custom "squish" easing from Open Props 🤓

✅ grid layout
✅ no abs positions
✅ visual transition is an upgrade
✅ respects reduced motion
✅ keyboard still rocks

https://codepen.io/argyleink/pen/BaGrXmv
#CSS Radiento

一个便当盒风格的 radio 组设计,带 View Transition 动画,加上 Open Props 提供的自定义 “squish” 缓动 🤓

✅ grid 布局
✅ 无绝对定位
✅ 视觉过渡是锦上添花
✅ 尊重减少动态偏好
✅ 键盘操作依然顺畅
Made the size increase based on the amount of drag from 0-1 so now it seamlessly increases without a jump
把尺寸增长改为基于 0-1 的拖动量,所以现在可以无缝增大、不再跳变