正在加载视频...
视频加载失败
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; }}
5 条评论

Sam Becker1 年前
So rad! Would this work for any container with content that overflows?

jhey ▲🐻🎈1 年前
yep – as a progressive enhancement currently 🥲 adaptation of this one but couldn't resist with that neat design as an opportunity for scroll(self inline) 🤓

César Couto1 年前
Smooth and lovely detail to add to inputs ;)

abelardoit🐦1 年前
How did you make the animation returns to the initial position back, please?

Moescape AI1 年前
Sign up & create wholesome anime art on Moescape AI now!
