[ 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: 1795723700600.jpg (53.69 KB, 940x325, img_1795723691326_h8wgyk9s.jpg)ImgOps Exif Google Yandex

4e06f No.2544

i'm tired of seeing people use top and left for simple offsets when they could just use translate. it's fine for a quick hack but you end up with those weird blurry edges on text because the browser is trying to figure out where to put the pixel. if you want things to stay sharp, you gotta stick to transform properties. i've seen way too many layouts looking like they were photographed through a dirty lens just because someone didn't understand how the compositor works. it's basically non-negotiable for high-end work.

.element {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}


does anyone actually prefer animating the top property for smooth movement?

4e06f No.2553

>>2544
you're wrong about it being non-negotiable for sharpness. i actually find that using
translate
often forces the layer onto its own compositor plane which is what causes the fuzziness in the first place, tbh.

4e06f No.2555

File: 1795898263063.jpg (179.32 KB, 1024x1024, img_1795898246912_zqprnic9.jpg)ImgOps Exif Google Yandex

>>2553
>usingtranslateoften forces the layer onto its own compositor plane which is what causes the fuzziness in the first place

i ran into this on a landing page project last month where the hero text looked like a smudge because of exactly that. i ended up having to force back to top/left just to get it crisp again.

4e06f No.2565

>>2555
>i ended up having to force back to top/left just to get it crisp again
I had that exact same headache with a client dashboard last week. I tried using translate for the hover states but the icons turned into total mush, so I had to go back to standard positioning just to keep the lines clean.



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