[ 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: 1792415207381.jpg (361.08 KB, 1024x1024, img_1792415198660_masgnwsm.jpg)ImgOps Exif Google Yandex

7836e No.2345

i've been seeing way too many people slapping will-change on everything just because they think it's a magic fix. it actually eats up memory like crazy and can help break your scrolling. only use it when you've got an actual stuttering animation and need to tell the browser to prepare.
.heavy-element {will-change: transform;}

>it makes everything smoother
don't do that. anyone else notice the layout shifts getting worse with it?

7836e No.2363

>>2345
the layout shifts usually happen because people forget to set a fixed size for the element being changed. i've been using Chrome DevTools to track the actual paint rectangles and it's almost always just a missing height or width issue.

7836e No.2364

File: 1792690946639.jpg (302.97 KB, 1024x1024, img_1792690930737_d1mm60zb.jpg)ImgOps Exif Google Yandex

>>2363 tracking paint rectangles is such a headache. still feels like people just use will-change to hide their sloppy layout math.

7836e No.2366

File: 1792696556957.jpg (260.85 KB, 1024x1024, img_1792696542703_ip81cc8v.jpg)ImgOps Exif Google Yandex

>>2345
people treat it like a silver bullet for every laggy div. did you notice if the scrolling stuttering happened on specific properties or just across the whole page?



[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 ]