Martin Pitt (@Nexii) header
Martin Pitt (@Nexii) profile picture

Curious and wanting to be kind. Web dev / game dev with ADHD. As I grow through others, I want to share back. I'm in full support of LGBTQIA+ & their rights.

London
Joined December 2007
Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)Photo by Martin Pitt (@Nexii)
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.
2
861
Martin Pitt retweeted
"A Love Letter to Fangirls" Zine 1/5
284
25,643
1,466
146,417
4,748,935
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…
1
1
6
1,374
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; }
Check check check ✅
21
221
10
2,874
225,570
Replying to @nearestnabors
Now showing at nearestnabors.com
1
3
124
Apple is on course to break all Web Apps in the EU within 20 days ‼️ 👇 Read the blog, fill the survey, join the fight!
5
92
11
191
52,264
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.
2
24
2
108
13,882
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.
17
85
8
663
96,718
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.
30
1,351
38
8,678
491,073
Martin Pitt retweeted
this looks amazing! 🤯
programmed my first game — ofc it had to be pong ✨ made with react-three-fiber and canvas
4
5
230
21,753
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 👇
Had this tab open since building this demo 😅 Might be time to build the rest of the demo for you 🤙 Combos of position: sticky and some JavaScript fun to dial in the scroll animation parts ✨ No filling up the words with background-position like the other demo either 😁
14
185
8
1,703
242,694
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.
3
11
1,679
Martin Pitt retweeted
Did a video exploring grass rendering! #threejs #gamedev Video: youtu.be/bp7REZBV4P4
9
34
3
281
33,273
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…
21
262
15
1,429
204,038
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
1,046
4,559
1,030
45,117
4,527,701
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.
8
44
6
861
187,342
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…
16
308
7
1,921
284,075
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! 👇
34
324
13
2,815
348,624
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…
1
1
2
289