Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DongCX/text-overflow-clamp

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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

Packages

No packages published

Languages

  • JavaScript 83.1%
  • HTML 13.2%
  • CSS 3.7%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.