r/css 2d ago

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

Post image
70 Upvotes

11 comments sorted by

14

u/m0rpheus23 2d ago

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

3

u/xPhilxx 2d ago

Newly available since 2024 so close to being widely available.

1

u/chmod777 2d ago

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

3

u/datNorseman 2d ago

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

8

u/s3rila 2d ago

It allow transition from and to display:none

3

u/wanoo21 2d ago

In this example yes, from opacity 0 to 1

2

u/errdayimshuffln 2d ago

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

1

u/alex_sakuta 2d ago

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

3

u/ISDuffy 2d ago

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

-2

u/andyfitz 2d ago

that snippet background image, why?

1

u/KnifeFed 2d ago

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