https://github.com/ericfreese/jquery.readmore
Another jQuery plugin for "read more" functionality.
https://github.com/ericfreese/jquery.readmore
Last synced: over 1 year ago
JSON representation
Another jQuery plugin for "read more" functionality.
- Host: GitHub
- URL: https://github.com/ericfreese/jquery.readmore
- Owner: ericfreese
- Created: 2013-01-28T23:50:03.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-29T01:17:25.000Z (over 13 years ago)
- Last Synced: 2025-01-23T03:55:02.270Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jQuery.readmore
===============
Simple jQuery plugin to add a read more link that expands content when it's clicked.
You give it a height and a label.
$('#demo2 .read-more').readmore({ 'clipHeight': '190px', 'label': 'Expand' });
If the height of the content of the selected element is greater than the height passed in, it sets the selected element's css overflow property to hidden and sets the height of the selected element to the height passed in.