Giter VIP home page Giter VIP logo

soundkit.js's Introduction

soundkit.js

jQuery/HTML5 sound UI kit for web applications.

View demo

Requirements

  • Requires jQuery >= 1.11.2

##Basic Usage

Call direct from javascript $.soundkit('sound-to-play') or:

  1. Include the javascript file as close to the end of your <body> as possible
<body>
      <div class="alert alert-success" data-sound-load="alert-echo">Success!</div>
      
      ...
      
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
      <script type="text/js" src="soundkit.min.js" />
</body>
  1. Add one of the following attributes to the element that you want the sound to be attached to:
  • data-sound-hover
  • data-sound-click
  • data-sound-load
  1. Lastly, you need to tell it which sound to play:
  • alert-click
  • alert-echo
  • alert-electric
  • alert-flick
  • alert-triangle
  • alert-wobble
  • click-analogue
  • click-analogue2
  • click-analogue3
  • click-blip
  • click-footfall
  • click-melodic
  • click-melodic2
  • click-pistachio
  • click-pistachio2
  • click-pistachio3
  • click-pop
  • click-retro
  • click-round-pop
  • click-round-pop2
  • click-round-pop3
  • click-silly
  • click-simple
  • click-simple-double
  • click-simple-resonant
  • click-woody
  • confirm-bass
  • confirm-blip
  • confirm-detuned
  • confirm-echo
  • confirm-echo2
  • confirm-melodic
  • confirm-melodic2
  • confirm-melodic3
  • confirm-melodic4
  • confirm-melodic5
  • confirm-retro
  • confirm-techy
  • confirm-techy2
  • confirm-xylophone
  • confirm-xylophone2
  • deny-analogue
  • deny-bass
  • deny-bass2
  • deny-bass3
  • deny-bass4
  • deny-echo
  • deny-electric
  • deny-electric2
  • deny-jar
  • deny-note
  • deny-retro
  • hover-doubleclick
  • hover-metallic
  • hover-pop
  • hover-sub-bass
  • hover-sub-bass2
  • hover
  • hover2
  • hover3
  • hover4
  • hover5
  • whoosh-sub-bass
  • whoosh
  • whoosh2
  • whoosh3
  • whoosh4
  • whoosh5
  • whoosh6
  • whoosh7

Attribution

To do

  • Remove jQuery dependency some day...

soundkit.js's People

Contributors

hellodaniel 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.