0.3.0 • Published 5 years ago

vue-waving-text v0.3.0

Weekly downloads
18
License
-
Repository
github
Last release
5 years ago

vue-waving-text

Software License Latest Version on NPM

Component to display waving text for Vue.

Demo

Go to demo.

Installation

Bundler (Webpack, Rollup...)

yarn add vue-waving-text

Or

npm install --save vue-waving-text

Register

Global
import WavingText from 'vue-waving-text';

Vue.component('WavingText', WavingText);
Local
import WavingText from 'vue-waving-text';

Vue.extend({
  template: '...',
  components: {
    WavingText: WavingText
  }
});

Browser

Download vue and vue-waving-text or use a CDN like unpkg.

<script src="vue.js"></script>
<script src="vue-waving-text.umd.js"></script>
or
<script src="https://unpkg.com/vue-waving-text/dist/vue-waving-text.umd.js"></script>

Usage

With all props.

<WavingText
    text="Vue waving text!"
    duration="1.1"
    side="30"
    fontsize="56"
    textClass="myClass"
    fromcolor="white"
    tocolor="#95b0ad"
/>

Setup

Props

ParameterTypeDefaultDescription
text (required)String-Text that waves.
durationString0.3Duration of animation in sec.
sideString90translateY axis pixel value.
fontsizeString50Fony size.
fromcolorwhite50Animation of text color, start value. Any vaild css color.
tocolorblack50Animation of text color, end value.Any vaild css color.
textClassString-Class that apply to font.

License

The MIT License

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago