<ul id="container"> <li><span>Lorem ipsum dolor</span></li> <li><span>sit amet, consectetur adipisicing</span></li> <li><span>elit, sed do eiusmod tempor incididunt ut labore et</span></li> </ul>
ul { list-style: none; width: 50%; } li { white-space: nowrap; }
var myFitText = new FitText('container','li > span',{ offset: 20, fitClass: 'fitted' });
View the MooDoc for usage and examples.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus