Ecosyste.ms: Awesome

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

https://github.com/javisperez/vue-visible

v-visible directive for VueJS
https://github.com/javisperez/vue-visible

directive hidden plugin v-show v-visible visibility visible vue-visible vuejs

Last synced: 26 days ago
JSON representation

v-visible directive for VueJS

Lists

README

        

# VueVisible

v-visible directive for VueJS (2.x)

## Demo
A jsFiddle live demo: https://jsfiddle.net/fcpc6utm/

## About

This plugins adds a v-visible directive (similar to the native v-show) that changes the `visibility` style of the applied element (hidden or visible).

## Install

With npm:

```
npm install --save vue-visible
```

With CDN:

```html

```

## Usage

If you're using modules, first import it:

```
import VueVisible from 'vue-visible';

Vue.use(VueVisible);
```

Then in your template just use the directive:

```

I'm visible

```

Or if you're not using modules, just include the js:

```

```
```

I'm visible

```