@eli5/vue-glitched
Version:
Vue glitched text component
44 lines (31 loc) • 641 B
Markdown
Repo is based on https://github.com/ianaya89/vue-glitch repo.
The vue component can be installed via npm or yarn
```
$ npm install @eli5/vue-glitched
```
```
$ yarn add @eli5/vue-glitched
```
In your main css file add this line of code
```
@import "~@eli5/vue-glitched/dist/client.css";
```
Start by importing the component.
```javascript
import GlitchedText from '@eli5/vue-glitched'
export default {
components: {
GlitchedText
}
}
```
In your template file
```html
<glitched-text :text="'Glitched text'" :color="'#FFF'" :fontSize="50"></glitched-text>
```