FitText 0.5
Details
- Author
- Ryan Florence
- Current version
- 0.5
- GitHub
- rpflorence/FitText
- Downloads
- 1675
- Category
- Interface
- Tags
- Report
- GitHub Issues
Releases
How to use
Example:
HTML:
<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>
CSS:
ul {
list-style: none;
width: 50%;
}
li {
white-space: nowrap;
}
JavaScript
var myFitText = new FitText('container','li > span',{
offset: 20,
fitClass: 'fitted'
});
View the MooDoc for usage and examples.
Discuss
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