1.0.5 • Published 6 years ago

vue-neon-light v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-neon-light 1.0.5

License

Neon Light plugin for Vue.js

img

GIF demo effect distortion,Please refer to the DEMO LIVE.

中文文档

DEMO Live

Demo >>>

Installation

1) Install package via NPM

npm i -S vue-neon-light

2) Install plugin within project

import VueNeonLight from 'vue-neon-light'

// In Vue Component
components:{
  VueNeonLight
}

or

const VueNeonLight = request('vue-neon-light');

or

<script src="./dist/vue-neon-light.js"></script>

Usage

  1. 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.

import VueNeonLight from 'vue-neon-light'
import fontPath from '../public/beon-webfont.ttf'

// Setting path as a variable.
export default {
  name: 'app',
  components: {
    VueNeonLight
  },
  data(){
    return {
      font: fontPath
    }
  }
}
  1. fontFile isnecessary.

vue mode:

<div id="app">
  <VueNeonLight :fontFile= "font">
    Hello Sevens
  </VueNeonLight>
</div>

or in script inject mode:

<div id="app">
  <vue-neon-light :font-file= "font">
    Hello Sevens
  </vue-neon-light>
</div>
  1. 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.
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago