clampy-js / clampy

Clamps an HTML element by adding ellipsis to it if the content inside is too long.

Home Page:https://clampy-js.github.io/clampy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clampy

Clamps an HTML element by adding ellipsis to it if the content inside is too long.

Build Status GitHub issues GitHub license npm

This is basically a fork of the (unfortunately abandoned) project Clamp.js partially converted to Typescript and bundled using the excellent Typescript library starter from Alex Jover.

Most fixes from pull requests on the original project were included.

*Note that the following options were removed from the original library:

  • useNativeClamp
  • animate

Documentation

Documentation is available here.

Examples

A demo is available here.

About

Clamps an HTML element by adding ellipsis to it if the content inside is too long.

https://clampy-js.github.io/clampy/

License:MIT License


Languages

Language:TypeScript 100.0%