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

https://github.com/cloudle/werner-rotator-player


https://github.com/cloudle/werner-rotator-player

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Werner's Rotator Player

Tumult's Hype embeded player using Werner's convention.
This project didn't aimed for public user.

### Installation:
In your project's root run this command
```
npm install --save werner-rotator-player
```

### Usage:
```javascript
import { playSlide } from 'werner-rotator-player';
import configs from './slideConfigs.json'; // Normally we'll load this from a service or api instead..

const playerContainer = document.getElementById('sliderContainer');
playSlide(playerContainer, configs);
```

### Bower support:
This library also available in Bower by
```
bower install --save werner-rotator-player
```
Emembed the bundled-for-web javascript file in our html will expose a global variable `WernerPlayer`,
which could be use like this in our page:

```
WernerPlayer.playSide(element, configs);
```

### References
https://tympanus.net/Development/NavigationIndicators/