Post

Here is a demo where you can add/remove images and see how they align perfectly. Demo: codepen.io/t_afif/full/... via @codepen.io As a bonus, we can have a nice animation by adding a transition to the offset property.

CSS by T. Afif@css-only.dev

💡 CSS Tip! Do you know that you can use offset() to place images around a circle? And if you combine it with the new sibling-*() functions, you can have a perfect placement that works for any number of elements! css-tip.com/images-circle/

2 reposts8 likes

No replies yet.