vue-neon-light 1.0.5
Neon Light plugin for Vue.js
GIF demo effect distortion,Please refer to the DEMO LIVE.
DEMO Live
Demo >>>
Installation
- Install package via NPM
npm i -S vue-neon-light
- Install plugin within project
// In Vue Componentcomponents: VueNeonLight
or
const VueNeonLight = ;
or
Usage
- Import the font file I have provided two simple font file (*.ttf) to you. One for the English (beon-webfont.ttf), the other one for the Chinese (bb1093.TTF). You can download the others font and use them which you perfer.
Copy font file into the /public
.
// Setting path as a variable. name: 'app' components: VueNeonLight { return font: fontPath }
fontFile
isnecessary.
vue mode:
Hello Sevens
or in script inject mode:
Hello Sevens
- Already done
Just two step, refresh and check the effect.
Plugin Options
effect
- Default: `neon`
- Acceptable-Values: String
- Function: Only support `neon` currently.
color
- Default: `#ff00ff`
- Acceptable-Values: String
- Function: The color setting of the Font.
fontFile
- Default: `null`
- Acceptable-Values: String
- Function: The file of the font file.
flash
- Default: `false`
- Acceptable-Values: Boolean
- Function: If `ture`, the letter will flash in random.
Log
Version 0.0.1
- Realized the basic functionality.
Version 1.0.6
- Performance improvement.
- Bug Fixed.