Martin Pitt retweeted
Do you work on video game interfaces professionally? I’d like to talk to you about something. Let me know in the replies, or send me a message.
Martin Pitt retweeted
The latest Complementary episode with @hobdaydesign covers elegance vs. extravagance in interface design. One takeaway I have is that reputation can play a part: strong design reputation = easier to get away with simple, elegant design?
podcasters.spotify.com/pod/s…
Martin Pitt retweeted
Nice opportunity for transitioning CSS grid columns with :has() && linear() 🤙
label {
--selected: 0;
grid-template-columns:
auto calc(var(--selected) * 20px);
}
label svg { opacity: var(--selected); }
label:has(:checked) { --selected: 1; }
Martin Pitt retweeted
Apple is on course to break all Web Apps in the EU within 20 days ‼️
👇 Read the blog, fill the survey, join the fight!

ALT OWA Logo and open-web-advocacy.org with the text: Apple on course to break all Web Apps in EU within 20 days No Fix: Beta 1, Beta 2, Beta 3 New UI indicates deliberate choice Nothing in release notes No mention in compliance proposal No response to bug tickets No response from Apple NOT required by the DMA 👇 Read more, OWA blog link below
Martin Pitt retweeted
Hadn’t noticed this up until now, but last week Navigation API got bootstrapped in WebKit 🤩 – github.com/WebKit/WebKit/pul…
With this API you can intercept navigations and turn your MPA into an SPA, and more: developer.chrome.com/docs/we…
The Navigation API is available in Chrome 102.
Martin Pitt retweeted
splats will change everything, it's like entering a live photograph. nobody modelled this in blender. it was shot with a handheld. reflections, lights etc aren't post pro render effects, it's all just in there. using drei/<Splat src="scene.splat" />, literally all it takes.
This quoted post is unavailable.
Martin Pitt retweeted
Here's a thread of unique vtubers (and fleshtubers!) from the past month.
I'm glad people have shared the hype around streamers innovating the livestreaming medium.
Will add to this thread as we feature more.
Martin Pitt retweeted
CSS Tip! ✨
You can create these parallax effects and image cross-fades with scroll-driven animations 🤙
img {
animation: fade;
animation-timeline: view();
mix-blend-mode: plus-lighter
}
img:last-of-type { animation-direction: reverse; }
@keyframes fade { to { opacity: 0; }}
This one's fun! 😁
The trick with the cross-fading image is to make use of one animation that runs at the same time on two images inside a container.
You use the same animation, animation-timeline, and animation-range. But, you use animation-direction: reverse on one of the images so they go in the opposite direction 🫶
The use of mix-blend-mode: plus-lighter; produces a better cross-fade result 💯
A viewTimeline (view()) works because you know that both images are the same height. The range you can use is
img {
animation-timeline: view();
animation-range: cover 45% cover 55%;
}
That means when the image has covered 45% of the scrollport (In this case, the window), start the animation. And finish when it has covered 55% 🎬
How about the slight parallax? This is a trick with calc(). You know the top of the small image and the big image line up. And you can do this by absolutely placing the caption outside of the small image.
The trick is to translate the small image by a distance so it lines up with the bottom of the big image. You can do that like this
:root {
--catch-up: calc(
var(--big-height) - var(--small-height)
);
}
@keyframes move { to { translate: 0 var(--catch-up); }}
Then drive that animation with a scroll-driven animation using the container of both images as the driver 🤙
/* section contains both images */
section { view-timeline: --container; }
.img-fader {
animation: catch-up both linear;
animation-timeline: --container;
animation-range:
50vh
calc(100vh + (var(--big-height) * 0.25));
}
That's it! Scroll-driven image cross-fading and parallax effects without any JavaScript. This demo will work in all browsers as there is some JavaScript in place where the API isn't supported 🤙 To do that, it uses GSAP ScrollTrigger 🏆
As always, any questions, requests, etc. hit me up! 🤙
@CodePen link below 👇
Martin Pitt retweeted
Let's see how many overlay companies will now try to SLAPP sue the European Commission!
PS Seeing the EC publishing this made my day!
Overlay plugins simply are not a one-click install solution to accessibility issues. Want to know more? Check the overlayfactsheet.com #a11y
This quoted post is unavailable.
Martin Pitt retweeted
🚀 Introducing gsplat.js - a JavaScript Gaussian Splatting library
🚄 Speed: Optimized WebAssembly
☂️ Versatility: Modular, swap out the renderer
🤗 Open Source: MIT License
Code: jsfiddle.net/e52x4m9z/
Repo: github.com/dylanebert/gsplat…
Martin Pitt retweeted
ok so - the human eye can absolutely tell the difference in framerates beyond 60 Hz
can we please stop the "the eye can only see in 60 fps" nonsense now
Martin Pitt retweeted
Here are 12 of my favourite light websites, in alphabetical order.
1) @attio's website is full of fine detail and interesting touches. They use colour only when they have to. Nowhere to hide, and they pulled it off.
Martin Pitt retweeted
Future CSS Tip! ⚡️
You can combine CSS :has() & :user-valid/:user-invalid to power <form> micro interactions 😍
No JavaScript. Watch for the little animations ✨
label {
--color: var(--default);
color: var(--color);
border-color: var(--color);
}
.group:has(:user-valid) {
--color: var(--valid);
}
.group:not(:focus-within):has(:user-invalid) {
--color: var(--invalid);
}
These new pseudo-elements only fire once an input has been interacted with. This means you don't need to do things like the "transparent :placeholder-shown" hack from before 🙌
Then you can lean into the power of scoped custom properties and change the theme based on the status of a form group 😎
It's a nice little touch. But remember, don't rely on color to communicate things!
@CodePen link below! 👇
Blink: Intent to Ship: :user-valid and :user-invalid CSS pseudo-classes groups.google.com/a/chromium…
Martin Pitt retweeted
Future CSS Tip! 🍏
You can create that Apple style blow out text effect with CSS scroll-driven animations ⚡️ No JavaScript!
The trick is to animate SVG text along the z-axis using 3D transforms 👀
.word {
animation: blow-out both ease-in;
animation-timeline: --section; 👈
animation-range: exit-crossing 10% exit 0%;
}
keyframes blow-out {
to { transform: translate3d(0.05ch, 0, 99vh); }
}
The animation makes the text cover the viewport and blends into the next section which has the same background-color 🤙
The section is set to 200vh. But the wrapper around the SVG text defines perspective and transform-style
.section__content {
transform-style: preserve-3d; 👈
perspective: 100vh;
}
We're using an SVG to maintain the crispness of the text as it scales up ✨ Use these attributes on the <text> within the SVG to align things 🤙
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
Your Name
</text>
It's the last day of #AppleEvent week but I do have some more of these I'll put together next week 😉
@CodePen link below! 👇
Martin Pitt retweeted
Technology itself can be genuinely amazing. When it gives us agency it is truly one of the most beautiful thing we can rely on! old.reddit.com/r/MadeMeSmile…























