X 归档 2026-05-31
small nuance 🧑🍳
you don’t always need to leave room for the scrollbar
if mask-size < activation range, it may never overlap 👇
it's handy for larger/eased masks over shorter ranges
and again, you might like the overlap 🤙 https://t.co/q6gSD2OfJl
you don’t always need to leave room for the scrollbar
if mask-size < activation range, it may never overlap 👇
it's handy for larger/eased masks over shorter ranges
and again, you might like the overlap 🤙 https://t.co/q6gSD2OfJl
一个小细节 🧑🍳
并不是总需要给滚动条留出空间
如果 mask-size < 激活范围,两者可能永远不会重叠 👇
这对在较短范围内用更大/带缓动的遮罩很好用
再强调一次,你可能就是喜欢重叠的效果 🤙 https://t.co/q6gSD2OfJl
并不是总需要给滚动条留出空间
如果 mask-size < 激活范围,两者可能永远不会重叠 👇
这对在较短范围内用更大/带缓动的遮罩很好用
再强调一次,你可能就是喜欢重叠的效果 🤙 https://t.co/q6gSD2OfJl
take this a step further: interpolate proximity through easing curves
same distance input, better-feeling output 🧑🍳
p.s. avoid calling getBoundingClientRect() inside pointermove. cache your measurements where possible and reuse
same distance input, better-feeling output 🧑🍳
p.s. avoid calling getBoundingClientRect() inside pointermove. cache your measurements where possible and reuse
再进一步:用缓动曲线对邻近度做插值
同样的距离输入,手感更好的输出 🧑🍳
p.s. 避免在 pointermove 里调用 getBoundingClientRect()。尽可能缓存测量结果并复用
同样的距离输入,手感更好的输出 🧑🍳
p.s. 避免在 pointermove 里调用 getBoundingClientRect()。尽可能缓存测量结果并复用
