短评 · ·

X 归档 2025-05-02

2 条动态 · 图 1 · 视频 1
If you like reading simple TypeScript types more than complex regex, keep an eye out for our next release👀
如果你更喜欢读简洁的 TypeScript 类型而不是复杂的正则表达式,敬请期待我们的下一个版本👀
@arktypeio 的配图 1/1
@jh3yy08:28原推文
you can create this dynamic mask using a progressive CSS scroll-driven animation 🧑‍🍳

the gist 👇

input {
animation: in;
animation-timeline: scroll(self inline);
animation-range: 0 6ch;
mask-position: 0 0;
}
@​keyframes in { 0% { mask-position: -6ch 0; }} https://t.co/powPSVOpQq
你可以用渐进式的 CSS 滚动驱动动画做出这种动态遮罩 🧑‍🍳

要点如下 👇

input {
animation: in;
animation-timeline: scroll(self inline);
animation-range: 0 6ch;
mask-position: 0 0;
}
@​keyframes in { 0% { mask-position: -6ch 0; }} https://t.co/powPSVOpQq