正在加载视频...

视频加载失败

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

222,671 次观看 • 1 年前 •via X (Twitter)

9 条评论

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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 😎

Wes Bos 的头像
Wes Bos1 年前

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

Mbaziira Ronald 的头像
Mbaziira Ronald1 年前

Man, CSS is becoming more powerful every year 😎

Wes Bos 的头像
Wes Bos1 年前

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

Jeroen Reumkens — FrontendFYI 的头像
Jeroen Reumkens — FrontendFYI1 年前

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

CRANQ 的头像
CRANQ1 年前

Great video content, a bit over my head though!

Matias Baldanza.dev 😁 ⚛️ 的头像
Matias Baldanza.dev 😁 ⚛️1 年前

What a great step-by-step breakdown!

TommyTheJ 的头像
TommyTheJ1 年前

Pretty neat 😎

Nicholas Mackey 的头像
Nicholas Mackey1 年前

So sick. Thanks for sharing, Wes. 🤙

相关视频