design-het-widget
Interactive web widget for Design Week 2019 - Budapest
Demo
http://brigittaforrai.com/design-het-widget/
Install
npm install design-het-widget --save
Import widget
Import widget into index.html or use javascript import
<head>
<script src="node_modules/design-het-widget/dist/design-het-widget.min.js"></script>
</head>
import 'node_modules/design-het-widget/dist/design-het-widget.min.js'
Add components
<body>
<design-het music-url="path/to/music.mp3" style="width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: -100;"></design-het>
<design-het-interface></design-het-interface>
</body>
Attributes
design-het-interface:
disable-download:
<design-het-interface disable-download="true"></design-het-interface>
design-het:
music-url:
<design-het music-url="music.mp3"></design-het>
circles:
- Number of bigger circle groups
- Fallback value: 1
- Max value: 3
<design-het circles="3" ></design-het>
Polyfill
Add webcomponents polyfill to support older browsers.
https://www.webcomponents.org/polyfills
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@^2/webcomponents-bundle.js"></script>
or
npm install @webcomponents/webcomponentsjs