
We are #JavaScript geeks sharing tutorials, quizes and updates in the JavaScript and Web Development Community. https://xitter.cf/t.co/Qg7L7422ho
Joined May 2020
- Tweets262
- Following131
- Followers36
- Likes309
Everyday JavaScript retweeted
Sharing my message on International Day of Yoga. xitter.cf/i/broadcasts/1djxXloOa…
Everyday JavaScript retweeted
CSS Tip! 🚀
Use CSS :has() to power a context-aware custom cursor experience 💪
:root:has(article:hover) {
--active: 1;
}
.cursor {
scale: var(--active, 0);
transition: scale 0.2s;
}
Combo with mix-blend-mode 😎
JavaScript to power position 🤙
@CodePen link below! 👇
CSS Tip! 🤙
You could use CSS :has() to power a context-aware custom cursor experience 👆
:root:has(.player:hover) {--active: 1;}
.cursor {scale: var(--active);}
:root:has(.player:hover > [aria-label="Pause"])
.cursor-pause-icon {
display: block;
}
@CodePen link below! 👇
Everyday JavaScript retweeted
I asked ChatGPT on how to put nested Angular form into smaller components which is working correctly :D
Everyday JavaScript retweeted
20. Continue Working On
The Continue Working On feature supports starting in a Git repository in a local window and continuing in a remote window like a GitHub Codespace.
Everyday JavaScript retweeted
Replying to @mattpocockuk
Have you done a video of the emulation of opaque types in Typescript?
(I think TS folks like to call these "brand" types or "brands")
Essentially, they are aliases to a type like "string" or "number", but safe:
EG: "type Currency = <numberish>"
EG: "type Name = <stringish>"
Everyday JavaScript retweeted
RxAngular (Template and CDK) has reached v1 🎉
github.com/rx-angular/rx-ang…
Everyday JavaScript retweeted
In @NxDevTools, instead of running two terminals at the same time for the webapp & the API, I'm using either custom script in package.json or the custom target in project.json.
Feels like the first option is more convenient where you don't have add more code 🤔
Everyday JavaScript retweeted
Stop hassling your users with OTPs,
Add Login with WhatsApp button to your app or website in just 5 minutes 🕓
Free forever. Unlimited users. otpless.in/twtc2
Everyday JavaScript retweeted
Do you know about :is() in CSS?
It's pretty handy!
More on :is(), as well as :where() and :has(), in my full article: builder.io/blog/css-is
Everyday JavaScript retweeted
🔥 TypeScript Tip 🔥
Omit and Pick are the gateway to understanding type-level programming.
They let you start deriving types, instead of redeclaring them.
Everyday JavaScript retweeted
Replying to @RealDanODowd
Dan is basically an unpaid intern on our QA team lol
Everyday JavaScript retweeted
System design is the most challenging and exciting type of tech interview.
Here is a complete list of topics that will help you get ready:
{0/18} ↓
Everyday JavaScript retweeted
First day after vacation. My team has worked on a refactor that has reduced our "initial" bundle with 28%! (500 kBs). The changes were related to how we consume components from our Design System. 👇 #angular
Our bundle size budgets in @angular
- set "initial" to 1.2 Mb
- build new feature; build breaks
- increase to 1.3 Mb
- build new feature; build breaks
- increase to 1.35 Mb
- build new feature; ...
🔁
(we're going to optimize it, eventually)
Everyday JavaScript retweeted
Playing more with the experimental CSS Anchoring API 👀
Here we anchor to the side of the chart and to the tallest anchor bar using CSS max ✨
.el {
bottom: max(
anchor(--anchor-1 top),
anchor(--anchor-2 top)
);
}
The browser works out the position for us 🤯
Everyday JavaScript retweeted
Did you know this? Since Angular 14.2, we can write functional guards and resolvers 👇
Everyday JavaScript retweeted
My talk from #ng-conf on WebApps at Scale looks into how we got here and what kind of challenges lie ahead.
docs.google.com/presentation…






















