jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profileg
jhey β–²πŸ»πŸŽˆ

@jh3yy

⚑️ Showing you how to bring ideas to life with code
πŸ’Ό Senior DX Engineer at @vercel
🫑 Prev: @google
🐻 https://t.co/rRqcWhrAgW
πŸ“Ί https://t.co/7FlZg84Rr8
❀ @seaotta

ID:2396811776

linkhttp://jhey.dev/links calendar_today18-03-2014 21:45:40

38,0K Tweets

98,6K Followers

149 Following

jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

It's fine. Jus' did this πŸ™ƒ

@​keyframes flip {
0%, 405% { rotate: x -90deg; }
50%, 100% { rotate: x 0; }
}

Spot the 2 CSS issues πŸ”

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

CSS scroll-snap is so borked in Chrome compared to Firefox and Safari πŸ₯²

Can you all get on the same page, please? πŸ™

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

Want to debug device-controlled CSS parallax effects without using a device?

Simulate device orientation in Chrome DevTools πŸ‘‡

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

'How would it look on mobile?' πŸ€”

All good βœ…

'Let's Cook' ➑️ 'Cook' πŸ§‘β€πŸ³

CSS @​media queries to the rescue!

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

Each time you pop the Golden Bear's balloon 🎈

[popover]:has(~ [popover]:popover-open) .bear:has(button) .bear__balloon {
animation: pop 0.2s forwards;
}

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

This one takes a little gettin' your head 'round 🎈

It does however help you understand how the new Popover API works ⭐️

Opening new Popovers from within a Popover doesn't close the Popover chain. When you get to the end, a <button> with type 'reset', resets the game state!

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

Is there any interest in videos where I go through approaches to building something without building it?

Had a couple of DMs like 'How would you build this?'

Sometimes I don't have the time to create a demo straight away 😬

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

Neat trick here is how you 'split' the CTA ✨

Pseudoelements in CSS will pick up pointer events πŸ‘€

When the Nav is collapsed, scale up a pseudoelement on the CTA so it's like the CTA takes up all the space 😎

Check out the purple highlighted pseudo πŸ‘‡

account_circle
jhey β–²πŸ»πŸŽˆ(@jh3yy) 's Twitter Profile Photo

CSS scroll-driven 'CTA to Nav' πŸ—ΊοΈ

nav {
grid-template-columns:
auto calc(var(--grow) * 240px) auto;
transition: 1s var(--custom);
}
@​keyframes expand { to { --expand: 1; } }
body {
animation: expand steps(1);
animation-timeline: --hero;
animation-range: exit;
}

account_circle