X 归档 2025-05-02
If you like reading simple TypeScript types more than complex regex, keep an eye out for our next release👀
如果你更喜欢读简洁的 TypeScript 类型而不是复杂的正则表达式,敬请期待我们的下一个版本👀
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
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
要点如下 👇
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


