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
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
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
Tim Wuyts retweeted
Have you ever needed the CSS paint-order property?
Really handy when working with text-strokes!
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…
Tim Wuyts retweeted
New blog post: "Ambilight Effect with CSS" 🎉
expensive.toys/blog/ambiligh…
Retweets welcome!
More examples below 🧵👇
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
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!
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.
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!
Tim Wuyts retweeted
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…
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 👌
Tim Wuyts retweeted
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%.
Tim Wuyts retweeted
CSS Functions and Mixins Module Notes
css-tricks.com/css-functions…



















