Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.

jannis-baratheon/readmorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Readmorize

A JQuery plugin inspired by an article on CSS Tricks.

For the live demo click here.

Usage

$('#your-element').readmorize({
  step: 150,
  overflowAfter: 150
});

Options:

  • overflowAfter your block will be cut down to this height (in pixels). The overflown content will be hidden and expand only after clicking the read more button.
  • step The number of pixels to expand the block down after read more button is clicked. undefined means that clicking the link will expand the whole block.

Releases

No releases published

Packages

 
 
 

Contributors