Scale button on hover causes text in it to blur during transition
Hello everyone, i am trying to create an hover effect for a button where the button increases it's size. I noticed that this problem has some stack overflow solutions but none seemed to work on my end. I was wondering if anyone has had a similar problem and how they solved it.
One work around i see is maintain the size of the text and increase only the size of the button.
Here is the code i am using:
I added 3 pictures of the before, during and after transition, hopefully it helps. Thank you for the attention!
6 Replies
well i think whenever we use some transform methods (
scale
, translate
, etc) the text blurs out
and i also think there's no solution for it (afaik)That's unfortunate if it is not possible π¦
uhh im not very good at css, so don't make a conclusion listening to my words
I still haven't witnessed this issue directly, and I had never heard of this problem until last month. Since then, I have seen 3 different people mention that they have this issue. Using their exact code, I was not able to reproduce it on any of my devices. It was actually surprising to me the first time I read about it, because TTF fonts are vector based and can scale infinitely. Bitmap fonts do exist, but it seems that this problem somehow is happening even with TTF fonts.
Are you using Windows? The last person who mentioned this issue was using Windows. I'm wondering if this is a bug introduced by Microsoft's attempt to fix antialiasing in Chrome. https://www.theverge.com/2024/3/25/24111273/microsoft-google-chrome-text-rendering-improvements
The Verge
MicrosoftΒ is making Chromeβs text rendering better on Windows
This isnβt the first time Microsoft has helped Google improve Chrome.
Yeah I use both windows and microsoft