Skip to content

joshgillies/text-overflow-clamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

text-overflow-clamp

A bare-bones port of Vesa Piittinen's TextOverflowClamp.js (http://codepen.io/Merri/pen/Dsuim)

API

var clamp = require('text-overflow-clamp')
clamp(document.getElementById('js-toclamp'), 3)

Limitations

Not compatible with padding, text-indent and probably some other stylings.

License - Vesa Piittinen (http://merri.net/)

About

A bare-bones port of TextOverflowClamp.js (http://codepen.io/Merri/pen/Dsuim) to npm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published