Sason Braha retweeted
My salute to the Indian pilot Captain Smit Machchhar for his extraordinary bravery.
Despite being stabbed and seriously injured, he fought back, resisted, opened the cockpit door, and enabled passengers and crew to overpower the attacker — preventing a catastrophic mid-air disaster.
He saved the lives of 174 people, including Israeli citizens and other nationals.
I wish Captain Machchhar a speedy and full recovery.
He is a true hero.
Sason Braha retweeted
TypeScript 7.0 Beta is here!
Built on a new native and parallelized foundation, it's already being used on multi-million line codebases.
Read up more here and try it on your projects today!
devblogs.microsoft.com/types…
Sason Braha retweeted
CSS Tip! 💡
The ::marker pseudo-element in CSS allows you to style list markers, such as bullets in <ul> or numbers in <ol>, providing easy customization of their appearance.
NOTE: The ::marker pseudo-element only applies to list items (<li>) or elements with display: list-item.
Sason Braha retweeted
pixelated view transitions using CSS mask and generated @keyframes 🤖
mask out the old, mask in the new, and give the ::view-transition a background-color
(had to see if it was possible 🫣)
Page transitions are a key factor for creating seamless experiences, and they’re one of our most popular requests.
While we use BarbaJS for client work, this week we’re sharing a simpler setup using JavaScript and @greensock for anyone looking to start relatively simple.
Sason Braha retweeted
We've refreshed our homepage—what do you think?
Its focus is making @liveblocks crystal clear, showing exactly what it enables in a way everyone can understand. We've spent a long time working on the message.
→ liveblocks.io
Sason Braha retweeted
CSS Trick ✨
You can create this glitch hover effect by animating pseudoelement content 🎬
button:hover span:after {
animation: flip 0.2s calc(var(--i) * 0.05s);
}
@keyframes flip {
20% { content: '_'; }
40% { content: var(--c1); }
60% { content: var(--c2); }
}
It's a funky little track that allows you to animate text flipping with CSS 🤙
Leaning into custom properties, you can make each flip animation random with inline styles 🎨
<button>
<span
style="--i: 0; --c1: 'x'; --c2: '$'; --c3: '≈';"
>C</span>
<span
style="--i: 1; --c1: 'ç'; --c2: '&'; --c3: 'π';"
>l</span>
<!-- Other characters -->
<span class="sr-only">Click Me</span>
</button>
You make use of each character within the keyframes above. And "--i" communicates the index that you can use for the animation-delay 🙌
That's all there is to it!
As always, any requests or suggestions, hit me up! 🙏
@CodePen link below! 👇
Sason Braha retweeted
Custom property powered responsive scroll animations with CSS 🔥
.card { animation: morph; animation-timeline: --scroll; }
.card--one { --x: -35vw; --r: -10deg; }
.card--two { --x: 35vw; }
@keyframes morph {
0% { translate: var(--x) var(--y); rotate: var(--r); }
}
Can someone teach me how to make this using scroll driven animations?
Tagging @jh3yy, or has he already made this somewhere?
Sason Braha retweeted
I love reading such detailed technical articles, those guys took Kafka apart and managed to understand the cause of their 3 seconds write latency in Kafka producers. Turns out it was caused by the flush/commit of the ext4 file system journal metadata. Of course doesn't mean ext4 is bad it's just not a fit for Kafka's workload. So they end up switching to XFS and improve the writes by 82%!
The way they discovered this is interesting, all the tooling they wrote for Java/Kernel is just amazing, recommend you guys checking it out.
full article
blog.allegro.tech/2024/03/ka…
I'll make a video covering this in details once I get a chance, I want to learn more about XFS and ext4, my knowledge there is limited.
I did a brief summary on the article on my second channel for those interested youtu.be/gxxeZum6BjE


























