Skip navigation
Future UI && CSS Tip! 🔮
0:00 / 0:36

Future UI && CSS Tip! 🔮

jhey ʕ•ᴥ•ʔ

@jh3yy142K followers

Visit on X
824 likesDownloadOriginal post

171,324 views

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 👇

13 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    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 🤓

    30 likes

  • Safari Web Extensions's profile picture

    @safari_add_on

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

    14 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    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.

    10 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    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!

    8 likes

  • Deepak Yadav's profile picture

    @Ekbyte

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

    2 likes

  • Wellington Alves 🖥's profile picture

    @welli_tech

    @CodePen >>>

  • Devestor's profile picture

    @devvestor

    @CodePen Does not work in FF?

  • miraclemenikelechi's profile picture

    @trinityandtruth

    @CodePen just got a portfolio idea 💡

  • Tomas Jansson's profile picture

    @TomasJansson

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

  • miraclemenikelechi's profile picture

    @trinityandtruth

    @CodePen can I implement this with react?

  • Helge Ahrens's profile picture

    @Tylopilus

    @CodePen @raunofreiberg

  • E.I.R.M🐐's profile picture

    @EIsraRM

    @CodePen @Descargar_Bot

  • Niall Maher's profile picture

    @nialljoemaher

    @CodePen Super slick