UNPKG

easy-read-more-button

Version:

Truncate text after a certain amount of lines. Give the user the option to read more if they would like.

27 lines (23 loc) 458 B
body { display: flex; flex-direction: column; align-items: center; } p { max-width: 500px; line-height: 1em; transition: max-height 5s; margin-top: 50px; } .easyReadMoreButton { padding: 10px 20px; border: 1px solid #000; border-radius: 5px; background-color: #fff; cursor: pointer; transition: color 0.3s, background-color 0.3s; } .easyReadMoreButton:hover { background-color: #000; color: #fff; }