Connecting two circles with an arrow is good, but it's even better if we can calculate and show the distance inside the arrow! 👀
css-tip.com/connected-ci...
Another cool demo powered by the future of CSS.
Connecting two circles with an arrow is good, but it's even better if we can calculate and show the distance inside the arrow! 👀
css-tip.com/connected-ci...
Another cool demo powered by the future of CSS.
Create a responsive grid of hexagon shapes with fewer than 15 CSS declarations, minimal HTML, and without media queries!
css-tip.com/hexagon-grid/
Improving a 5-year old implementation using modern CSS (corner-shape, sibling-index(), math functions, etc)
Create a responsive grid of hexagon shapes with fewer than 15 CSS declarations, minimal HTML, and without media queries!
css-tip.com/hexagon-grid/
Improving a 5-year old implementation using modern CSS (corner-shape, sibling-index(), math functions, etc)
A mini Mario world with keyboard control. Yes, you can move Mario and also jump! 👀
Demo: codepen.io/t_afif/full/... via @codepen.io
✔️ 100% CSS Magic
✔️ Minimal HTML
❌ 0% JavaScript
A Chrome-only experimentation using modern CSS.
A mini Mario world with keyboard control. Yes, you can move Mario and also jump! 👀
Demo: codepen.io/t_afif/full/... via @codepen.io
✔️ 100% CSS Magic
✔️ Minimal HTML
❌ 0% JavaScript
A Chrome-only experimentation using modern CSS.
Detailing another cool demo using modern CSS features.
css-tricks.com/responsive-l...
Enjoy!
Detailing another cool demo using modern CSS features.
css-tricks.com/responsive-l...
Enjoy!
Demo: codepen.io/t_afif/full/... via @codepen.io
Demo: codepen.io/t_afif/full/... via @codepen.io
Two circles, one arrow, and CSS magic. 🪄
A cool demo packed with modern features (anchor positioning, attr(), container queries, shape(), and more!) 🤩
css-tip.com/connected-ci...
The shape and position of the arrow are fully controlled using CSS (Yes, there is a collision detection).
Two circles, one arrow, and CSS magic. 🪄
A cool demo packed with modern features (anchor positioning, attr(), container queries, shape(), and more!) 🤩
css-tip.com/connected-ci...
The shape and position of the arrow are fully controlled using CSS (Yes, there is a collision detection).
Learn how I made that responsive list of overlapping images using modern CSS.
css-tricks.com/responsive-l...
A perfect use case for the new sibling-index() and sibling-count() functions.
Learn how I made that responsive list of overlapping images using modern CSS.
css-tricks.com/responsive-l...
A perfect use case for the new sibling-index() and sibling-count() functions.
A cool demo in progress ...
A cool demo in progress ...
Demo: codepen.io/t_afif/full/... via @codepen.io
Demo: codepen.io/t_afif/full/... via @codepen.io
css-tip.com/fizz-buzz/
A fun CSS-only experiment using modern features.
css-tip.com/fizz-buzz/
A fun CSS-only experiment using modern features.
Another classic component made easy using corner-shape. A gallery of skewed images with a hover effect.
css-tip.com/skewed-images/
It can be done with old features, but this one is direction-aware! One code for both directions (left-to-right and right-to-left)
Another classic component made easy using corner-shape. A gallery of skewed images with a hover effect.
css-tip.com/skewed-images/
It can be done with old features, but this one is direction-aware! One code for both directions (left-to-right and right-to-left)
Here are the 4 values you want
position-area: span-top span-left;
position-area: span-top span-right;
position-area: span-bottom span-left;
position-area: span-bottom span-right;
Here are the 4 values you want
position-area: span-top span-left;
position-area: span-top span-right;
position-area: span-bottom span-left;
position-area: span-bottom span-right;
css-tip.com/position-area/
And I am using it myself to rapidly copy/paste the value 😅
css-tip.com/position-area/
And I am using it myself to rapidly copy/paste the value 😅
A direction-aware arrow is good, but what about a generic way to make any CSS Shapes direction-aware? It's possible!
css-tip.com/direction-aw...
The code is simple and doesn't require any modern features, so it's well-supported.
A direction-aware arrow is good, but what about a generic way to make any CSS Shapes direction-aware? It's possible!
css-tip.com/direction-aw...
The code is simple and doesn't require any modern features, so it's well-supported.