🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Showmore is a lightweight, mobile-compatible jQuery read more/read less plugin for long web content.

read-more read-less

Documentation

JQuery-Showmore

JQuery Plugin to hide and show parts of content in a container by changing the container's height.

The height is animated by CSS transition.

Window-resize events will be handled gracefully.

Usage

See demo/index.html

Make sure to load jquery and to load dist/jquery.showmore.min.js. Then call the plugin with a jquery selector e.g.

$('#container').showmore({     closedHeight: 70,     buttonTextMore: 'Show more',     buttonTextLess: 'Show less',     buttonCssClass: 'showmore-button',     animationSpeed: 0.5 }); 

License

MIT License (MIT)

Copyright (c) 2017 Viktor Grandgeorg


You May Also Like