Skip to content

mrMarshalX/ellipsify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ELLIPSIFY


Simple ellipsis helper for DOM elements


Installation

Add ellipsify.js to your project.

Basic usage

  • grab DOM element, for example document.querySelector('SELECTOR_NAME')
  • call ellipsify() on DOM element passing arguments
    1. lines - number of lines to be visible on the screen
    2. maxHeight - maximum height of the container (if you want to avoid this parameter add 'inherit')
    3. lineHeight - line-height css rule

Notes

  • It is first version of the helper (draft version)
  • It only works on div & section

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published