Giter VIP home page Giter VIP logo

iryna-vyshniak / drum_kit_js Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9.73 MB

This is a sound kit project made by me to demonstrate and practice my js skills. The goal for this project is to build a drum kit app that runs in the browser. The main concepts are key events and CSS animations.

Home Page: https://iryna-vyshniak.github.io/Drum_Kit_JS/

HTML 31.73% SCSS 53.82% JavaScript 14.45%
vanilla-javascript vanilla-js 1stday-js30 challenge-javascript30 keycode-info key-events kbd-tag

drum_kit_js's Introduction

Parcel template

This project was created with Parcel. For familiarization and setting additional features refer to documentation.


Drum Kit

This is a sound kit project made by me to demonstrate and practice my js skills. The goal for this project is to build a drum kit app that runs in the browser. The main concepts are key events and CSS animations. Key events begin with using the <kbd> HTML tag. Within each tag, the data-key attribute is created and its value is set to the key code value for each key. For example, the letter ‘U’ on the keyboard has a key code of ‘85’, the ‘K’ on the keyboard has a key code of ‘75’, and so on. To make the pressed key play its assigned sound, it’s bound to the <audio> tag with the data-key value.

In this project we have a clear context for what the JavaScript needs to do, which is:

  • Listen for a keydown event to play a drum sound
  • Animate the keys on the screen when they are played

When a drum key is pressed, the event listener listens for the CSS transition property to end. With the event listener implemented, each drum key displays the transition, plays a drum sound and returns to its original state automatically.

drum_kit_js's People

Contributors

dependabot[bot] avatar goit-i18n avatar iryna-vyshniak avatar luxplanjay avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.