you can create this dynamic mask using a progressive CSS scroll-driven animation 🧑🍳
jhey ʕ•ᴥ•ʔ
Visit on X@jh3yy148K followers
126,491 views
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 Comments
Comments from the original post on X (Twitter)

@sambecker
So rad! Would this work for any container with content that overflows?
2 likes

@jh3yy
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) 🤓
20 likes

@xcrap
Smooth and lovely detail to add to inputs ;)
1 like

@AbelardoIT
How did you make the animation returns to the initial position back, please?

@MoescapeAi
Sign up & create wholesome anime art on Moescape AI now!
1,424 likes