正在加载视频...

视频加载失败

Future UI && CSS Tip! 🔮 You could use View Transitions to animate CSS grid position and create an OSX-style exposé for a portfolio 🔥 It's a grid where things move based on state. Wrapped in a VT 🤙 [data-expose] section{ grid-area:var(--x)/var(--y); } CodePen.IO link below 👇

171,324 次观看 • 2 年前 •via X (Twitter)

13 条评论

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

Here's that @CodePen link! 🚀 You'll need to be in Chrome to see it as it uses the View Transitions API and the Popover API 🤓

Safari Web Extensions 的头像
Safari Web Extensions1 年前

Discover the top Safari web extensions to boost productivity, enhance workflow, and customize your browsing experience on Mac, iOS, and iPadOS.

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

To be honest, I just wanted to see how you might be able to use the new APIs in combo to create this kind of UI/UX 😅 Been exploring different types of portfolio design and essentially this is "Just Tabs". But, presented in a funky way. You could also do some magic with images.

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

For example, if you know what the other pages look like, you could show images as the link placeholders in "exposé" mode. And to do that, you _could_ snapshot some images of your pages at build time or something with Puppeteer which would be fun 🤔 Then View Transition between!

Deepak Yadav 的头像
Deepak Yadav2 年前

@CodePen omg! For a moment I thought why are you switching apps. ❤️‍🔥❤️‍🔥❤️‍🔥❤️‍🔥❤️‍🔥❤️‍🔥♥️♥️

Wellington Alves 🖥 的头像
Wellington Alves 🖥2 年前

@CodePen >>>

Devestor 的头像
Devestor2 年前

@CodePen Does not work in FF?

miraclemenikelechi 的头像
miraclemenikelechi2 年前

@CodePen just got a portfolio idea 💡

Tomas Jansson 的头像
Tomas Jansson2 年前

@CodePen I think this would be a nice combo with @nextjs parallel routes.

miraclemenikelechi 的头像
miraclemenikelechi2 年前

@CodePen can I implement this with react?

Helge Ahrens 的头像
Helge Ahrens2 年前

@CodePen @raunofreiberg

E.I.R.M🐐 的头像
E.I.R.M🐐2 年前

@CodePen @Descargar_Bot

Niall Maher 的头像
Niall Maher2 年前

@CodePen Super slick

相关视频