Get new jQuery plugins just once a week
October 14, 2012
Trunk8 | intelligent text truncation plugin to jQuery
trunk8 is an intelligent text truncation jquery plugin when applied to a large block of text, it will cut off just enough text to prevent it from spilling over.
Unlike conventional truncation that just limits the character length of text, trunk8 measures the content area for spill-over and intelligently chooses the text that best fits in the given space.
Following features :-
Change the number of lines by supplying an integer greather than or equal to one to the lines property.
- Custom Fill
This jquery plugin will automatically add an ellipsis (…) after the truncated text.
This jQuery plugin comes with an update method that replaces text and truncates in one step.
trunk8 comes with a revert method that returns the element to its original, untruncated state.
Resizing your browser window will also trigger real-time truncation by hooking into the window.onresize event.
Created by Rick Viscomi
Text Truncation plugin for jquery
Sign up for our weekly newsletter.