davatron5000 / FitText.js

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

FitText on bootstrap navbar links #166

Open savgiannis opened 6 years ago

savgiannis commented 6 years ago

Hi, I tried to implement fit text in bootstrap navbar links so the font size is different on xl, lg, and even on sm screens when it collapses so i will not have to add media queries but it does not work it always keeps the max size. Any help ? Thanks

TrentWalton commented 6 years ago

Hi! You might start by building a reduced test case on a site like codepen so we can see what's up. Have you seen the readme? https://github.com/davatron5000/FitText.js/blob/master/README.md

lwxbr commented 6 years ago

Yeah, links and buttons don't resize using fittext, I tried in this pen: https://codepen.io/vendramini/pen/PBNqbN

I did some algorithm based in viewport width without change the properties of fittext, hope it might help as it helped me: https://codepen.io/vendramini/pen/jpqVdz