davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.75k stars 1.39k forks source link

Specify a 100% value for a text, then reduce it-25% for a given screen size media query #173

Closed tomasts248 closed 4 years ago

tomasts248 commented 4 years ago
Say I have a 
h1 {font-size: 40px;}
p {font-size: 18px;}

@media (max-width: 500px) {
    h1, p {
        font-size:75%;
    }
}

Ok so for performance reasons this is not feasible with FitText, but is it doable in the form of a jquery plugin or definitively is a no-no?

davatron5000 commented 4 years ago

Hi. We don't help with specific support questions here. This is for BUGS 🐛 that occur with the jQuery plugin.

You could maybe use regular CSS for this using em units.