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

https://github.com/weichiachang/vue-elevator

🔝 A wrapper of elevator.js in Vue
https://github.com/weichiachang/vue-elevator

elevator vue vue-elevator vue2

Last synced: 11 months ago
JSON representation

🔝 A wrapper of elevator.js in Vue

Awesome Lists containing this project

README

          

# vue-elevator

[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)

A wrapper of [elevator.js](https://github.com/tholman/elevator.js) in Vue



vue2-github-corners

## Demo

[Show me the code, or demo it](https://weichiachang.github.io/vue-elevator/dist/) ![turtle](http://i.imgur.com/879dfXS.gif)



easter-egg-collection

> Image Original Source From [Awesome Egoist](https://github.com/egoist/evangelion-card) ! Thank you !

## Installation

```
npm i -D vue-elevator
```

## Usage

For standalone version

```javascript

```

For vue-cli user

```javascript
import { VueElevator } from 'vue-elevator'

Vue.component('VueElevator', VueElevator)

```

## Sample

```javascript



export default {
...
data () {
return {
// Replace word, duration, mainAudio and endAudio setting as you want.
// If default is what you like, just don't use related key-value pair and ignore it.
word: "Go to Top",
duration: 4000,
mainAudio: "http://tholman.com/elevator.js/music/elevator.mp3",
endAudio: "http://tholman.com/elevator.js/music/ding.mp3",
}
}
}
```

---

## License

[MIT](http://opensource.org/licenses/MIT) © [WeiChiaChang](https://github.com/WeiChiaChang)