config - (optional) Configuration object for displaying Waves effect.
{{#code class="lang-javascript"}}
var config = {
// How long Waves effect duration
// when it's clicked (in milliseconds)
duration: 500,
// Delay showing Waves effect on touch
// and hide the effect if user scrolls
// (0 to disable delay) (in milliseconds)
delay: 200
};
// Initialise Waves with the config
Waves.init(config);
{{/code}}
Waves.attach(elements, classes)
Attach ripple effect by adding .waves-effect to HTML element. Make sure you call Waves.init() to activated the ripple.
Arguments
elements - A string selector, DOM element, or array of DOM elements to add .waves-effect and other classes to.
classes - (optional) Waves classes to add to theses elements, for example: 'waves-light waves-classic'. Accepts a single string, or array of classes.
{{#code class="lang-javascript"}}
// Adds .waves-effect and .waves-light to