CSS by T. Afif :verified:

CSS stuff by Temani Afif

๐Ÿ’ก css-tip.com
๐Ÿงฉ css-shape.com
๐Ÿ’ซ css-loaders.com
๐Ÿ“ css-articles.com
โš™๏ธ css-generators.com
๐Ÿ† css-challenges.com
๐ŸŽจ css-pattern.com
โœจ css-only.art
๐ŸŽฎ css-games.com
โ“ css-quizzes.com

I verified myself because I know I am a real person. You can trust me, I know who I am.

CSS by T. Afif :verified:css@front-end.social
2026-02-06

For people who think it's useless because we can simply define max/min-width are missing the point.

It's not only about that specific case, but also about any combination that involves other values as well.

#CSS #HTML

A CSS code showing example of calc-size() combined with clamp()
CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2026-02-05

๐Ÿ’ก CSS Tip!

Have you ever tried to use "auto" within clamp()? Unfortunately, it doesn't work, but it's now possible using the new calc-size()!

css-tip.com/clamp-auto/

The same applies to all the sizing values (min-content, max-content, fit-content, etc.)

#CSS #HTML

Overview of the CSS code from the provided link
CSS by T. Afif :verified:css@front-end.social
2026-02-05

@u0421793 it's the default/initial value of the width (and height) property. It's like defining nothing for the width so it will depend on your other CSS.

If you get "strange" results it's more likely something else not related to auto (flexbox algo, CSS grid configuration, alignment, etc)

CSS by T. Afif :verified:css@front-end.social
2026-02-05

๐Ÿ’ก CSS Tip!

Have you ever tried to use "auto" within clamp()? Unfortunately, it doesn't work, but it's now possible using the new calc-size()!

css-tip.com/clamp-auto/

The same applies to all the sizing values (min-content, max-content, fit-content, etc.)

#CSS #HTML

Overview of the CSS code from the provided link
CSS by T. Afif :verified: boosted:
Adrian Roselli, pH0aardrian@toot.cafe
2026-02-04

@css So the code is not the same as yours. GSAP has an invalid `aria-label` (as cited earlier).

That said, I have been cautioning against letter-by-letter splitting for years:
โ€ข 2012: xcancel.com/aardrian/status/18
โ€ข 2020: xcancel.com/aardrian/status/12
โ€ข 2022: xcancel.com/aardrian/status/14

Probably more, but I cannot search Masto.

Interestingly, while NVDA/Firefox reads the `aria-label`, JAWS/Chrome and Narrator/Edge see no content at all. VO/Safari will let me navigate a few letters.

Wow thatโ€™s broken.

CSS by T. Afif :verified:css@front-end.social
2026-02-04

@aardrian it's from the demo in their website (also available here: codepen.io/GreenSock/pen/xxmaN)

CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2026-02-04

A CSS-only elastic hover effect, because why not?

css-tip.com/elastic-hover/

A chrome-only experiment using shape(), sibling-index(), linear(), etc.

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2026-02-04

@aardrian Based on your article, I suppose I should not trust stuff like this: gsap.com/docs/v3/Plugins/Split ?

They claim "everything is ok" but their code is the same as the one I shared so they will logically suffer from the same issues (they also do char-by-char splitting as well)

CSS by T. Afif :verified:css@front-end.social
2026-02-03

@florianboegner I cannot test with Safari so I don't know. If it works there, then good.

CSS by T. Afif :verified:css@front-end.social
2026-02-03

A direction-aware and more realistic version.

Demo: codepen.io/t_afif/full/xbOzxyp via :codepen: @codepen

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2026-02-03

@kizu kind of doable: codepen.io/t_afif/pen/xbOzxyp/ but I need to clean the code a little.

CSS by T. Afif :verified:css@front-end.social
2026-02-03

@kizu maybe not. Looks like we always need many "elements" to catch different hover but I will see If I can avoid adding more elements to my existing markup.

CSS by T. Afif :verified:css@front-end.social
2026-02-03

@kizu yes, good idea. Will try another implementation ๐Ÿ˜‰

CSS by T. Afif :verified:css@front-end.social
2026-02-03

A CSS-only elastic hover effect, because why not?

css-tip.com/elastic-hover/

A chrome-only experiment using shape(), sibling-index(), linear(), etc.

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2026-01-31

@kizu because CSS has rules now? ๐Ÿ˜…

CSS by T. Afif :verified:css@front-end.social
2026-01-28

I really like how modern CSS allows us to define complex stuff.

You might think the code of that pyramid is huge, but it's one property controlling everything (grid-column-start)

Container queries, if, sibling-index, maths, etc ... and they said CSS is not a programming language. ๐Ÿคทโ€โ™‚๏ธ

#CSS #HTML

Overview of the CSS code of the demo in the first post
CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2026-01-28

People are debating the masonry layout, and I'm creating strange layouts.

A Pyramidal Grid of Hexagon Shapes! ๐Ÿ‘€

css-tip.com/pyramidal-grid/

A fully responsive implementation powered by modern CSS (corner-shape, sibling-index(), math functions, etc.) and no media queries.

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2026-01-27

@kizu The only part I skipped ๐Ÿ˜…

I was sure it will be another "safari being safari" thing that I don't want to know about ..

CSS by T. Afif :verified:css@front-end.social
2026-01-27

@kizu what about, instead of the "probe" element, you rely on a pseudo element of the "shrinkwrap source" that will behave the same way (anchored, etc). Looks like you can reduce one element?

didn't try (will probably do later) but maybe you already did and it failed for some reasons.

CSS by T. Afif :verified:css@front-end.social
2026-01-27

What about a Pyramid of Rhombus shapes?

Demo: codepen.io/t_afif/full/NPrwOXG via :codepen: @codepen

#CSS #HTML

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst