0.1.2 • Published 5 years ago

wc-trombone v0.1.2

Weekly downloads
19
License
MIT
Repository
github
Last release
5 years ago

🎺 Trombone Web Component 🎺

"The trombone is a musical instrument in the brass family. As on all brass instruments, sound is produced when the player's vibrating lips (embouchure) cause the air column inside the instrument to vibrate." -- Wikipedia.

But not this one! Its sound is produced by resizing the window of your browser or popup. Pretty amazing, right?!

By Stefan Nieuwenhuis

npm (tag) npm

Goals

The idea behind this Web Component is to learn more about the Web Audio API in a fun way and to bring Web Components to a wider audience.

This Web Component is built with StencilJs.

Installation

Script tag (with unpkg): Put the following tag in the <head> of your index.html and you can use the element anywhere in your application:

<script src='https://unpkg.com/wc-trombone@latest/dist/wc-trombone.js'></script>

Node Modules (npm or yarn): Add the wc-components as dependency to node_modules via npm or yarn:

# add dependency with npm:
$ npm install wc-trombone

# or with yarn:
$ yarn add wc-trombone

Put the following tag in the <head> of your index.html and you can use the element anywhere in your application:

<script src='node_modules/wc-trombone/dist/wc-trombone.js'></script>

Framework integration

Stencil documentation provides examples of Javascript and framework integration for Angular, React, Vue and Ember.

How to use?

After installing the dependency, just add the following tag in your html:

<wc-trombone></wc-trombone>

Resize the window to make music!

Showcase

To make it go TooT click here

Credits

A HUGE thanks to Matthew Rayfield, who came up with the idea of a popup trombone and who allowed me to turn his idea into a Web Component.

thanks Matthew

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago