1.0.0 • Published 8 years ago
text-overflow-clamp v1.0.0
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/)
1.0.0
8 years ago