|
|
15 gadi atpakaļ | |
|---|---|---|
| .. | ||
| Assets | 15 gadi atpakaļ | |
| Demos | 15 gadi atpakaļ | |
| Docs | 15 gadi atpakaļ | |
| Source | 15 gadi atpakaļ | |
| README.md | 15 gadi atpakaļ | |
| package.yml | 15 gadi atpakaļ | |
Truncates the text nodes of elements to fit inside a container
#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;
}
#JS
var myFitText = new FitText('container','li > span',{
offset: 20,
fitClass: 'fitted'
});
View the MooDoc for usage and examples.