https://github.com/cloudle/werner-rotator-player
https://github.com/cloudle/werner-rotator-player
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudle/werner-rotator-player
- Owner: cloudle
- Created: 2017-10-16T19:06:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T16:01:10.000Z (over 8 years ago)
- Last Synced: 2025-03-15T20:04:00.043Z (about 1 year ago)
- Language: JavaScript
- Size: 373 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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/