1.0.0 • Published 6 years ago
ellipsity v1.0.0
Ellipsity
A JavaScript library that will Ellipsis text that overflows its container. Simple, Fast, Powerful!
- Will dynamically ellipsis multiline text regardless of the amount of lines the text contains to the size of its parent container.
Code Example
Ellipsity.ellipsify(document.getElementById("container"));
Is all that is required, view the example for a live example.
Motivation
HTML, CSS and Javascript do not support native crossbrowser functionality to truncate and ellips text. This library is a simple and easy way to provide that functionality for you and the code can easily be built on.
Installation
Include the following script into the head or body of your html document:
<script type="text/javascript" src="ellipsity.min.js"></script>
API Reference
You are set with:
Ellipsity.ellipsify(container);
License
The current license is MIT as it is the simplest and less restrictive license I could find on here at the time. If you feel like it is restricting you in anyway I am open to alternate licenses that are less restricting.
1.0.0
6 years ago