Loading video...
Video Failed to Load
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 views โข 2 years ago โขvia X (Twitter)
13 Comments

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 ๐ค

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

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.

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!

@CodePen omg! For a moment I thought why are you switching apps. โค๏ธโ๐ฅโค๏ธโ๐ฅโค๏ธโ๐ฅโค๏ธโ๐ฅโค๏ธโ๐ฅโค๏ธโ๐ฅโฅ๏ธโฅ๏ธ

@CodePen >>>

@CodePen Does not work in FF?

@CodePen just got a portfolio idea ๐ก

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

@CodePen can I implement this with react?

@CodePen @raunofreiberg

@CodePen @Descargar_Bot

@CodePen Super slick
Related Videos
Quickly and easily create a CSS Grid layout for your website!
Marko Denic
211,198 views โข 1 year ago
