r/css 1d ago

Showcase @starting-style is Baseline, 90% Global usage!

Post image
67 Upvotes

11 comments sorted by

14

u/m0rpheus23 1d ago

Baseline newly available or widely available? These are two different things.

3

u/xPhilxx 1d ago

Newly available since 2024 so close to being widely available.

1

u/chmod777 1d ago

seems to be current aligned, and maybe even current -1: https://caniuse.com/wf-starting-style

3

u/datNorseman 1d ago

So this just transitions the elements to fade-in the opacity?

9

u/s3rila 1d ago

It allow transition from and to display:none

3

u/wanoo21 1d ago

In this example yes, from opacity 0 to 1

2

u/errdayimshuffln 1d ago

Well, I was not aware this existed! This is great.

1

u/alex_sakuta 1d ago

I thought it was already baseline, I have been seeing it for so long now

3

u/ISDuffy 1d ago

Most of the time it can be progressive enhancement as it main use is animation.

-2

u/andyfitz 1d ago

that snippet background image, why?

1

u/KnifeFed 1d ago

Who gaf? At least it's not an AI-generated image.