Wave effect plugin for Vue.js
- Install package via NPM
npm install vue-real-wave
- Install plugin within project
import VueRealWave from 'vue-real-wave'
or
const vueBaberrage = request('vue-baberrage');
- Template
<div id="app">
<VueRealWave wavePosition="bottom" :waveLayerCount="4" :space="80" :waveGap="100">
<div>
<h1>I am the content.</h1>
</div>
</VueRealWave>
...
</div>
- Already done
Just One step.
- Default: `150`
- Acceptable-Values: Number
- Function: The gap distance between two wave.
- Default: `40`
- Acceptable-Values: Number
- Function: The height of the wave.
- Default: `4`
- Acceptable-Values: Number
- Function: The layers number of the wave. ** Note that ** the size of the color's list must be equal with waveLayerCount.
- Default: `['#40ccd4','#71d8df','rgba(256,256,256,.5)','rgba(256,256,256,1)']`
- Acceptable-Values: Array
- Function: The color's list of the wave. ** Note that ** the size of the color arrage must be equal with waveLayerCount.
- Default: `#0aaacb`
- Acceptable-Values: String
- Function: The Background color.
- Default: `bottom`
- Acceptable-Values: String
- Function: 'top' or 'bottom'. Determine the position of the wave of the content.
- Default: `50`
- Acceptable-Values: Number
- Function: The padding between with the nearest element.
None.
- Realized the basic functionality.
- Performance improvement.
- Update README.md.