Collapser is a jQuery plugin for collapsing/truncating an element text by words, characters and lines. It is an all in one plugin with multiple functionalities to truncate a paragraph or any element as desired.
Features
- Four modes of operation
- Truncate text by characters
- Truncate text by words
- Truncate text by lines
- Show/hide element
- HTML content present in the elements are preserved during the operation.
- Simple and flexible API for using in varied applications.
- Display remaining string count in the show/hide button.
- No complicated syntax or alterations required, can be used readily.
- Light weight only 4KB compressed.
- Works in all browsers. Tested till IE 7 and it works !
Links
Buy me coffee !
If you like this work and found this useful buy me a coffee ! your donation will motivate me to develop and support this work.
Add your comment 236 Comments so far