Plugin jQuery: jQuery Collapser : jQuery plugin for Collapsing an Element Text

jQuery Collapser : jQuery plugin for Collapsing an Element Text
http://www.jqueryrain.com/?http://www.aakashweb.com/demos/jquery-collapser/
http://github.com/vaakash/jquery-collapser/archive/master.zip
http://www.aakashweb.com/jquery-plugins/collapser/
03/02/2014

Nội dung

jQuery Collapser : jQuery plugin for Collapsing an Element Text

Collapser is a small and useful jQuery plugin for collapsing/truncating an element text by words, characters and lines with a flexible API. 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 after minification.
  • Works in all browsers. Tested till IE 7 and it works !

Nguồn: www.jqueryrain.com/2014/02/jquery-collapser-jquery-plugin-collapsing-element-text/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận