Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianaya89/vue-glitch

👻 Vue.js component to apply glitch effect in any kind of text
https://github.com/ianaya89/vue-glitch

component glitch vue

Last synced: 20 days ago
JSON representation

👻 Vue.js component to apply glitch effect in any kind of text

Awesome Lists containing this project

README

        

# vue-glitch

> 👻 Vue.js component to apply glitch effect in any kind of text

[ ![Codeship Status for ianaya89/vue-esc](https://app.codeship.com/projects/3738d4b0-082d-0135-8a91-66ea66f8c9cb/status?branch=master)](https://app.codeship.com/projects/214292)
[![Coverage Status](https://coveralls.io/repos/github/ianaya89/vue-glitch/badge.svg)](https://coveralls.io/github/ianaya89/vue-glitch)

![glitch preview](src/assets/preview.gif)

## Install

```bash
$ npm i -S vue-glitch

# or

$ yarn add vue-glitch
```

## Global Registration

```javascript
// main.js

import Vue from 'vue';
import Glitch from 'vue-glitch';

Vue.component('glitch', Glitch);
```

## Local Registration

```html

// Component.vue
import Glitch from 'vue-glitch';

export default {
name: 'Component',

components: { Glitch }
};

```

## Component Usage

```html





```

## Component Properties

| name | required | default |
| :---: | :---: | :---: |
| text | `true` | |
| color | `false` | `#fff` |
| background | `false` | `#000` |

## Component Styling
> To apply custom styles you should care about `.glitch` and `.glitch-wrapper` classes.

```css
.glitch {
margin-bottom: 20px;
padding: 20px;
font-size: 40px;
}

.glitch-wrapper {
font-family: sans-serif;
}
```

## Development Setup

```bash
# install dependencies
$ npm i

# dev mode
$ npm run dev

# test
$ npm run test

# build
$ npm run build
```

## License
[MIT License](https://github.com/ianaya89/vue-glitch/blob/master/LICENSE)

## Style
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](http://standardjs.com)

---
*This project was generated with [generator-vue-component](https://github.com/ianaya89/generator-vue-component) and was inspired by [this](https://codepen.io/anatravas/pen/mOyNWR) Codepen by [@anatravas](https://codepen.io/anatravas/)*

**⌨️ with ❤️ by [@ianaya89](https://twitter.com/ianaya89)**