A set of buttons which merge loading indicators into themselves to bridge the gap between action and feedback.
Make sure the ladda.css and ladda.js files are included on the page. You will then be able to control the loading states of buttons using the following JavaScript API.
// Create a new instance of ladda for the specified button
var l = Ladda.create( document.querySelector( '.my-button' ) );
// Start loading
l.start();
// Stop loading
l.stop();
// Toggle between loading/not loading states
l.toggle();
// Check the current state
l.isLoading();
- JS API
- Initial release
MIT licensed
Copyright (C) 2013 Hakim El Hattab, http://hakim.se