Tim Wuyts (@timwuyts) profile picture

Software engineer at Crafting. A web passionate.

Herenthout, België
Joined September 2009
Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)Photo by Tim Wuyts (@timwuyts)
Tim Wuyts retweeted
222
847
122
12,436
798,203
Tim Wuyts retweeted
Use CSS Grid to stack items, and visibility: hidden to hide/show spinner. This approach allows the largest item to size the button, and keeps the button text accessible
Help me, you're my only hope I have a button that should display a loading spinner, usually with a different width than the content. but how do I prevent the button from resizing when it does? - I do not want to set fixed pixel width on all buttons - I need a tailwind or react solution
51
208
15
2,586
177,301
Move fast and break things
4
105
11
960
37,827
Tim Wuyts retweeted
Can we please stop with the scroll-jacking carousels on websites? CSS Scroll Snap is a much better solution! Re-built the Uniqlo home page with 6 lines of CSS and 4 lines of JS
54
404
19
5,694
305,642
Tim Wuyts retweeted
Use `ncu` with --filter to update dependencies by a specific name works with npm, yarn, pnpm, deno and bun - though some tools like pnpm also have this built in `npm i npm-check-updates -g` to install
9
10
3
117
13,611
Tim Wuyts retweeted
Have you ever needed the CSS paint-order property? Really handy when working with text-strokes!
15
103
4
1,276
56,755
Tim Wuyts retweeted
How is this website so fast? I take a look behind McMaster-Carr and detail all the techniques they are using to make it fast. They are doing it all — prefetching HTML, inlined CSS, fixed images, pushstate — and all on a stack with 15 year old tech. youtube.com/watch?v=-Ln-8QM8…
how come a company founded over 100 years ago has the fastest site on the internet?
94
480
94
5,207
913,244
New blog post: "Ambilight Effect with CSS" 🎉 expensive.toys/blog/ambiligh… Retweets welcome! More examples below 🧵👇
How about "Ambilight" for HTML video? 🤯 New blog post in progress...
2
18
4
106
11,185
Tim Wuyts retweeted
🤯 Just 4 lines of CSS View Transitions are great for changing pages BUT it's incredible for animating any changes to the DOM
22
184
10
2,198
149,201
Tim Wuyts retweeted
This CSS Backlight Effect is sooooo damn cool! I've taken it a step further with SVG Filters Makes it work with any element - including video!
💡CSS techniques: "The Backlight" Using a blur filter you can create an elegant backlight (or a "smart shadow") effect for your images. In a pseudo-element: 1⃣ `inherit` a background 2️⃣ blur it 3⃣ put it behind the main element using z-index Here's how it works:
43
250
21
2,850
232,199
Tim Wuyts retweeted
🤯 How am I just finding out about display: contents; Suuuuper handy for CSS Flexbox + Grid where the children aren't direct descendants.
107
578
109
5,375
357,050
Tim Wuyts retweeted
Man! I just keep finding new uses for CSS subgrid! Two tips you should know:
38
186
21
1,756
87,997
Tim Wuyts retweeted
I'm sick of the CSS centering jokes. You can now vertically center the contents of a block level element without Grid of Flexbox!
65
156
28
1,661
136,531
Introducing @​bramus/style-observer, a MutationObserver for CSS. It allows you to attach JavaScript callbacks to changes in computed values of CSS properties. 🔗 bram.us/2024/08/31/introduci…
24
3
106
12,236
Tim Wuyts retweeted
Man I love this cool effect with CSS Conic gradients!
33
214
26
2,527
163,620
Tim Wuyts retweeted
🔥 CSS Tip! Have you ever wanted the benefits of a block element but the sizing of an inline element? width: max-content; comes in super handy here 👌
12
34
4
305
23,439
This was obvious to anyone with experience programming software: Programming is 95% understanding the problem + formulating a robust solution then 5% sitting down to write the actual code. Language models can't do 95% of software development & still awful at the remaining 5%.
In tech, especially programming, we're finding that a large swath are getting their code generated in like 5 minutes where it'd take them like 3 hours to write it but they're now spending much longer debugging said code because it's crap and they didn't write it
25
259
5
986
70,462
Tim Wuyts retweeted
Pretty impressive that you can do it without JavaScript with this new CSS API heres a quick tutorial on how to code the iPad video scroller mask effect yourself
I saw this nifty CSS Video Masking technique on the iPad website. Pretty neat use of CSS - not what I expected!
18
220
12
2,548
222,970
Tim Wuyts retweeted
CSS can FINALLY animate height: auto!
83
649
109
5,463
323,764