Skip to content

Minimal responsive jQuery readmore JS with CSS transitions where possible

License

Notifications You must be signed in to change notification settings

krisdigital/readmore-light-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

readmore-light-js

Minimal responsive jQuery readmore JS with CSS transitions where possible, use it as it or as a starting point.

It works in production, is tiny and you can check it out here!

Usage

HTML

<div class="faded-read-more read-more-c">
  <div class="read-more">
   Your text is much too long, bro, you should totally shorten it! 
  </div>
</div>

JS

$('.read-more').each ->
  new ReadmoreLight($(this), {
    moreTemplate: $('#more-link-template').html()
    lessTemplate: false
  })

About

Minimal responsive jQuery readmore JS with CSS transitions where possible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published