0.1.8 • Published 5 years ago

vue-read-more-smooth v0.1.8

Weekly downloads
284
License
MIT
Repository
github
Last release
5 years ago

vue-read-more-smooth

license vue 2 npm npm

"Read more" button with animation and easy usage for vuejs.

Install

Via npm:

npm

npm install vue-read-more-smooth --save

Via Yarn:

yarn add vue-read-more-smooth

Demo & examples

npm.io

Code examples: https://dicren.github.io/vue-read-more-smooth/

Usage

<template>
  <VueReadMoreSmooth>
    <p>Lorem Ipsum</p>
  </VueReadMoreSmooth>
</template>
<script>
  import VueReadMoreSmooth from "vue-read-more-smooth";
  export default {
    name: "app",
    components: { VueReadMoreSmooth }
  }
</script>

Properties

PropertyTypeDefaultDescription
:linesnumber3Number of lines to show before the read more button.
:g-linesnumber2Shadow's size. If lines is greater than 12, g-lines default value is 4, if lines is greater than 6, g-lines default value is 3
:max-linesnumberlines + 1If your text has less than max-lines, the container acts as a normal div.
:textstringRead moreobvious
:text-lessstringRead lessobvious
:no-lessbooleanfalseif true button disappear after click read more
:openbooleanfalseopen and close programmatically. .sync is available.
:no-buttonbooleanfalseHide the button. To use in combination with :open
:no-shadowbooleanfalseHide the shadow.

Changelog

0.1.8 - 2019-08-09

Added

  • :open property
  • :no-button property
  • :no-shadow property

Removed

  • :open-by-default property, replaced by :open

License

MIT


⌨️ with ❤️ by dicren

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago