https://github.com/timonson/switchwitch
Web Component using Shadow DOM - Cycle through various media gracefully
https://github.com/timonson/switchwitch
javascript shadow-dom web-component webcomponent webcomponents webdesign webdevelopment
Last synced: about 1 month ago
JSON representation
Web Component using Shadow DOM - Cycle through various media gracefully
- Host: GitHub
- URL: https://github.com/timonson/switchwitch
- Owner: timonson
- License: mit
- Created: 2020-01-08T06:03:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T02:12:44.000Z (about 6 years ago)
- Last Synced: 2025-02-15T19:29:37.470Z (over 1 year ago)
- Topics: javascript, shadow-dom, web-component, webcomponent, webcomponents, webdesign, webdevelopment
- Language: JavaScript
- Homepage: https://timonson.github.io/switchwitch/
- Size: 1.34 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# switchwitch
A Web Component using the Shadow DOM - Cycle through various media gracefully.
## Demo
[Click](https://timonson.github.io/switchwitch/).
## Qick Start
Serve the file `demo.html` to your browser.
## Example
```html
import data from "./demo-data/inputData.js"
switcher.data = data
```
## API
```
"width",
"height",
"color",
"border-color",
"indexes",
"active-index",
"loop",
"data",
"item"
```