
💡 https://xitter.cf/t.co/xk3TRqX1f1 🧩 https://xitter.cf/t.co/4jGcDxtd38 💫 https://xitter.cf/t.co/lRAAxfrQ09 📝 https://xitter.cf/t.co/oOgtxdf5i9 ⚙️ https://xitter.cf/t.co/UtXPa9iUiT 🏆 https://xitter.cf/t.co/KgsRpeby7Q 🎨 https://xitter.cf/t.co/0bhdtiVFTU 🎨 https://xitter.cf/t.co/sZ8q2fgRBB
💰 Support Me ⮕
Joined April 2021
- Tweets6.1K
- Following123
- Followers14K
- Likes10K
Pinned Tweet
If you don't know, my CSS Tip website is open to advertisers. Don't miss the opportunity to promote your product and support my work!
Reach a wide audience of passionate web developers (~14.000 active users per month) starting from 150$/month.
css-tip.com/advertise/
CSS by T. Afif retweeted
More range sliders with fancy shapes? Let's go! This time with a tooltip showing the value.
curve, wave, zig-zag, arc ... Which one do you prefer?
css-tip.com/shaped-range-sli…
0% JavaScript and 100% CSS magic (border-shape, shape(), scroll-driven animations, and more!)
Who said range sliders need to be straight and boring?! Hey CSS, distort the line! 〰️
css-tip.com/wiggly-range-sli…
Another funny demo powered by border-shape, scroll-driven animations, and more
The HTML code? Only an input element (no extra code is needed)
More range sliders with fancy shapes? Let's go! This time with a tooltip showing the value.
curve, wave, zig-zag, arc ... Which one do you prefer?
css-tip.com/shaped-range-sli…
0% JavaScript and 100% CSS magic (border-shape, shape(), scroll-driven animations, and more!)
Who said range sliders need to be straight and boring?! Hey CSS, distort the line! 〰️
css-tip.com/wiggly-range-sli…
Another funny demo powered by border-shape, scroll-driven animations, and more
The HTML code? Only an input element (no extra code is needed)
💡 CSS Tip!
Another cool shape that works well with random(): wavy dividers!
css-tip.com/random-wavy-shap…
Each visitor gets their own wavy shape for a unique experience.
💡CSS Tip!
Creating CSS Shapes is one of my favorite tasks, and now I can do something even better: Random CSS Shapes!
Let's start with Blobs.
css-tip.com/random-blob/
You never see the same shape twice. A unique shape for a unique experience! 👀
CSS by T. Afif retweeted
📝 New CSS Article!
With Scroll-Driven Animations, you can transfer a value from one element to another anywhere on the page. I am using it to implement children-count().
Strange? Confusing? What the heck am I talking about?!
Read my latest article 👇
blog.master.dev/transferring…
📝 New CSS Article!
With Scroll-Driven Animations, you can transfer a value from one element to another anywhere on the page. I am using it to implement children-count().
Strange? Confusing? What the heck am I talking about?!
Read my latest article 👇
blog.master.dev/transferring…
💡 CSS Tip!
Want to know how many children your container has? We don't have children-count() yet, but we can implement it using modern CSS!
css-tip.com/children-count/
A hacky experiment powered by Scroll-Driven Animations.
How would you use it? Share your use cases 👇
CSS by T. Afif retweeted
💡CSS Tip!
Creating CSS Shapes is one of my favorite tasks, and now I can do something even better: Random CSS Shapes!
Let's start with Blobs.
css-tip.com/random-blob/
You never see the same shape twice. A unique shape for a unique experience! 👀
💡CSS Tip!
Creating CSS Shapes is one of my favorite tasks, and now I can do something even better: Random CSS Shapes!
Let's start with Blobs.
css-tip.com/random-blob/
You never see the same shape twice. A unique shape for a unique experience! 👀
CSS by T. Afif retweeted
💡 CSS Tip!
border-shape + border-area = The perfect combo 🪄
3 lines of code to create border-only shapes with gradient coloration. Absolutely any shapes, even the most complex ones! 👀
css-tip.com/gradient-shapes/
💡 CSS Tip!
border-shape + border-area = The perfect combo 🪄
3 lines of code to create border-only shapes with gradient coloration. Absolutely any shapes, even the most complex ones! 👀
css-tip.com/gradient-shapes/
📝 New CSS Article!
Learn how I used Scroll-Driven Animations and other modern features to extract various information for a CSS grid.
blog.master.dev/extracting-g…
Another article to show that CSS is more than a simple set of properties/values.
CSS by T. Afif retweeted
Ready for another CSS-only diagram? This time, I am trying another connector type. It sticks to the selected sides, regardless of the node's position.
css-tip.com/node-connection-…
Look how the lines get distorted! 👀
Another cool demo powered by modern CSS features!
A diagram with various nodes and connectors? Yes, doable with pure CSS. Another demo powered by modern features!
css-tip.com/node-connection/
Regardless of the node's position, the connectors will adjust their shape and position for optimal connection 👀
Ready for another CSS-only diagram? This time, I am trying another connector type. It sticks to the selected sides, regardless of the node's position.
css-tip.com/node-connection-…
Look how the lines get distorted! 👀
Another cool demo powered by modern CSS features!
A diagram with various nodes and connectors? Yes, doable with pure CSS. Another demo powered by modern features!
css-tip.com/node-connection/
Regardless of the node's position, the connectors will adjust their shape and position for optimal connection 👀
Go vote for the border-shape feature. It should be part of Interop 2027!
I have a lot of cool demos waiting for better browser support (that I will share anyway in 2026 😅)
github.com/web-platform-test…
Combining the content property with if() is pretty handy for conditionally displaying information.
If an element spans one column or one row, don't show the "end" value
Getting information from a simple grid is good, but what about a complex one where the items are randomly placed? 👀
css-tip.com/grid-information…
A fancy demo powered by Scroll-Driven Animations and more!
All the values are calculated and displayed using only CSS.
Yes, it's responsive. All the values are updated on screen/container resize!
Getting information from a simple grid is good, but what about a complex one where the items are randomly placed? 👀
css-tip.com/grid-information…
A fancy demo powered by Scroll-Driven Animations and more!
All the values are calculated and displayed using only CSS.
Getting information from a simple grid is good, but what about a complex one where the items are randomly placed? 👀
css-tip.com/grid-information…
A fancy demo powered by Scroll-Driven Animations and more!
All the values are calculated and displayed using only CSS.
An interactive demo showing how all the values adjust in real time as the grid is resized.
codepen.io/t_afif/full/vEgqg… via @CodePen
All the values are integers, so you can use counters to display them
CSS by T. Afif retweeted
📝 New CSS Article!
Do you want to know how I made that cool hover effect? Read my latest article 👇
blog.master.dev/hover-proxim…
I am showing you what programming* with CSS looks like when you combine the modern features!
*yes, I said the forbidden word
A responsive CSS grid, some Scroll-Driven Animations, and a touch of magic. The perfect recipe for a cool CSS-only hover effect! 🤩
css-tip.com/hover-proximity/
One fancy demo (among many) we can create using modern CSS.
📝 New CSS Article!
Do you want to know how I made that cool hover effect? Read my latest article 👇
blog.master.dev/hover-proxim…
I am showing you what programming* with CSS looks like when you combine the modern features!
*yes, I said the forbidden word
A responsive CSS grid, some Scroll-Driven Animations, and a touch of magic. The perfect recipe for a cool CSS-only hover effect! 🤩
css-tip.com/hover-proximity/
One fancy demo (among many) we can create using modern CSS.






