A JQuery plugin to set ellipsis to a text by line count. Converts the text to multiple lines and after the line count reached, it will set ellipsis and set tooltip.
- Works in and tested in
IE
andChrome
- Tooltip is applied only if ellipsis has set
- Default line count is 2
Include libraries
<script type="text/javascript" src="src/multiLineEllipsis.min.js"></script>
<link rel="stylesheet" type="text/css" href="src/css/multiLineEllipsis.css">
$(".threeLineEllipsis").multiLineEllipsis({
line:3,
tooltip:true
});
Make changes to .src/ folder and run gulp
from root directory, that will make build as per gulpfile.js
Note: Make sure to run 'npm install' before running above command
I'm just getting started. Please help me to shape this plugin better
Released under MIT by, and copyright 2017 by satheesht.