With this mixin you can easily create text that will smoothly scale down from an upper bounds breakpoint down to a specific minimum font size, all with only CSS(LESS).
h1 { .ResponsiveText(960,3.4,2); }
Generates to:
h1 {
font-size: 3.4rem;
}
@media only screen and (max-width: 960px) {
h1 {
font-size: 5.66666667vw;
}
}
@media only screen and (max-width: 564.70588235px) {
h1 {
font-size: 2rem;
}
}
which allows the H1 on this page to smoothly scale down from 3.4rem font size at 960px and above resolution all the way down to 2rem.