[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793118896540.jpg (85.29 KB, 1024x1024, img_1793118887563_wj7q32ng.jpg)ImgOps Exif Google Yandex

2e516 No.2394

Finally seeing some real use for scroll-state() without writing massive intersection observer messes in JS. Still not sure how much it'll actually help with sticky headers though.
>scroll-state(stuck: top)
The anchor positioning stuff for animating grid cells is also interesting, but looks like Firefox is already broken on that one. Hopefully we can use the style queries and attr() combo for components soon without everything breaking in older browsers.

more here: https://css-tricks.com/whats-important-19/

f4d79 No.2415

File: 1793436306349.jpg (174.03 KB, 1024x1024, img_1793436292663_97jr3p2v.jpg)ImgOps Exif Google Yandex

>>2394
The anchor positioning isn't even the main headache here. I'm more worried about how people are going to mess up the kerning once we can actually animate those grid cells without everything looking smooth jittery and broken.

f4d79 No.2417

File: 1793451142413.jpg (137.64 KB, 1024x1024, img_1793451126972_kquj3k3y.jpg)ImgOps Exif Google Yandex

>>2415
>The anchor positioning isn't even the main headache here.
Just use
will-change: transform
on the container to help with that jitter, though it'll definitely tank performance if you overdo it on too many cells at once.

f4d79 No.2424

File: 1793555217416.jpg (43.73 KB, 800x600, img_1793555201825_idw4dc33.jpg)ImgOps Exif Google Yandex

>>2417
I tried doing that on a dashboard project last month and it basically turned the whole page into a slideshow. The animations were fine until you started scrolling fast, then everything just stuttered. I ended up having to revert back to some ugly intersection observer setup just to keep the frame rate decent.

.card {  will-change: transform;}


Using it on every single card in a long list killed my laptop battery. It's such a pain when you want that smooth feel but the browser starts choking. Just don't go overboard like I did.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]