Skip navigation
Pretty impressive that you can do it without JavaScript with this new CSS API
0:00 / 6:51

Pretty impressive that you can do it without JavaScript with this new CSS API

Wes Bos

@wesbos438K followers

Visit on X
2,559 likesDownloadOriginal post

222,832 views

Pretty impressive that you can do it without JavaScript with this new CSS API heres a quick tutorial on how to code the iPad video scroller mask effect yourself

9 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    And here's my version that attempts to match up to the iPad site one 🤙 Uses the pathLength trick and position:sticky to get closer to the video behavior from the original 😎

    25 likes

  • Wes Bos's profile picture

    @wesbos

    Ohhhh sheeesh - thats even better. Good tip - thank you

    6 likes

  • Mbaziira Ronald's profile picture

    @MbaziiraRonn

    Man, CSS is becoming more powerful every year 😎

    5 likes

  • Wes Bos's profile picture

    @wesbos

    lots of super powerful APIs rolling out right now - its a good time for CSS

    9 likes

  • Jeroen Reumkens — FrontendFYI's profile picture

    @JeroenReumkens

    Appreciate the mention Wes! This tutorial is already super complete! Well done 🔥

    2 likes

  • CRANQ's profile picture

    @CranQnow

    Great video content, a bit over my head though!

    1 like

  • Matias Baldanza.dev 😁 ⚛️'s profile picture

    @matiasbaldanza

    What a great step-by-step breakdown!

    1 like

  • TommyTheJ's profile picture

    @sobolew_ski

    Pretty neat 😎

    1 like

  • Nicholas Mackey's profile picture

    @nicholasmackey

    So sick. Thanks for sharing, Wes. 🤙

    1 like