Skip navigation
you can create this dynamic mask using a progressive CSS scroll-driven animation 🧑‍🍳
0:00 / 0:39

you can create this dynamic mask using a progressive CSS scroll-driven animation 🧑‍🍳

jhey ʕ•ᴥ•ʔ

@jh3yy148K followers

Visit on X
1,231 likesDownloadOriginal post

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)

  • Sam Becker's profile picture

    @sambecker

    So rad! Would this work for any container with content that overflows?

    2 likes

  • jhey ▲🐻🎈's profile picture

    @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

  • César Couto's profile picture

    @xcrap

    Smooth and lovely detail to add to inputs ;)

    1 like

  • abelardoit🐦's profile picture

    @AbelardoIT

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

  • Moescape AI's profile picture

    @MoescapeAi

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

    1,424 likes