Professional-React-and-Next.js-Course
Professional-React-and-Next.js-Course copied to clipboard
Fancy Counter : How to make the font size dynamic to the length of the text content inside ?
I searched for couple of solutions, but still didn't answer the quest.
- clamp property, but I see that makes responsive to viewport.
- Pure CSS to make font-size responsive based on dynamic amount of characters
- Dynamically change the size of the font size based on text length
- This is pretty close solution Codepen
- Also tried, ChatGPT, Bard, Claude, all stuck with clamp & viewport.
Any pure css solution or other work around.