All Projects → msurguy → Ladda Bootstrap

msurguy / Ladda Bootstrap

Licence: mit
Ladda buttons concept originally by @hakimel, example using Bootstrap 3 by @msurguy

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ladda Bootstrap

Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-85.93%)
Mutual labels:  bootstrap, bootstrap3
Ajsf
Angular JSON Schema Form
Stars: ✭ 266 (-78.86%)
Mutual labels:  bootstrap, bootstrap3
Jblog
🔱一个简洁漂亮的java blog 👉基于Spring /MVC+ Hibernate + MySQL + Bootstrap + freemarker. 实现 🌈
Stars: ✭ 187 (-85.14%)
Mutual labels:  bootstrap, bootstrap3
Cakephp3 Bootstrap Helpers
CakePHP 3.x Helpers for Bootstrap 3 and 4.
Stars: ✭ 134 (-89.35%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap
Repository for my tutorial course: Bootstrap 3 Essential Training on LinkedIn Learning and Lynda.com.
Stars: ✭ 14 (-98.89%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap
基于bootstrap3搭建的页面结构
Stars: ✭ 137 (-89.11%)
Mutual labels:  bootstrap, bootstrap3
Ci Adminlte
CodeIgniter 3.1.10 with AdminLTE 2.3.11
Stars: ✭ 259 (-79.41%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap 4 Utilities
Bootstrap 4 utility classes in LESS CSS for Bootstrap 3 or any other projects.
Stars: ✭ 105 (-91.65%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap
Open Source JS plugins
Stars: ✭ 13 (-98.97%)
Mutual labels:  bootstrap, bootstrap3
Bh
Bootstrap Helpers for Ruby
Stars: ✭ 834 (-33.7%)
Mutual labels:  bootstrap, bootstrap3
Wordpress Bootstrap
Bootstrap in WordPress theme form - Bootstrap 3.3.1
Stars: ✭ 1,494 (+18.76%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap Blog Template
An awesome blog template constructed using Twitter Bootstrap 3
Stars: ✭ 29 (-97.69%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap Validate
A simple Form Validation Library for Bootstrap 3 and Bootstrap 4 not depending on jQuery.
Stars: ✭ 112 (-91.1%)
Mutual labels:  bootstrap, bootstrap3
X Editable Rails
Edit fields easily with X-Editable helper
Stars: ✭ 159 (-87.36%)
Mutual labels:  bootstrap, bootstrap3
Vue Cli Multipage Bootstrap
vue-cli-multipage-bootstrap demo with vue2+vue-router+vuex+bootstrap+markdown for learning vue2.0
Stars: ✭ 105 (-91.65%)
Mutual labels:  bootstrap, bootstrap3
Bootstrap Input Spinner
A Bootstrap 4 / jQuery plugin to create input spinner elements for number input
Stars: ✭ 176 (-86.01%)
Mutual labels:  spinner, bootstrap
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+7.39%)
Mutual labels:  bootstrap, bootstrap3
Aurelia Slickgrid
Aurelia-Slickgrid a wrapper of the lightning fast & customizable SlickGrid datagrid with a few Styling Themes
Stars: ✭ 100 (-92.05%)
Mutual labels:  bootstrap, bootstrap3
Angular Ui Notification
Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
Stars: ✭ 549 (-56.36%)
Mutual labels:  bootstrap, bootstrap3
Uiv
Bootstrap 3 components implemented by Vue 2.
Stars: ✭ 882 (-29.89%)
Mutual labels:  bootstrap, bootstrap3

Project INACTIVE

There is now no need to maintain this project as Ladda operates well on its own with Bootstrap and demo pages could be found in the original Ladda repository: https://github.com/hakimel/Ladda/tree/master/test

Ladda for Bootstrap 3

Buttons with built-in loading indicators, effectively bridging the gap between action and feedback.

Check out the demo page.

Instructions

Please see the demo page for the details: (http://msurguy.github.io/ladda-bootstrap/).

HTML

Ladda buttons must be given the class ladda-button and the button label needs to have the ladda-label class. The ladda-label will be automatically created if it does not exist in the DOM. Below is an example of a button which will use the expand-right animation style.

<button class="ladda-button" data-style="expand-right"><span class="ladda-label">Submit</span></button>

Buttons accepts three attributes:

  • data-style: one of the button styles, full list in demo [required]
  • data-color: green/red/blue/purple/mint
  • data-size: xs/s/l/xl, defaults to medium
  • data-spinner-size: 40, pixel dimensions of spinner, defaults to dynamic size based on the button height
  • data-spinner-color: A hex code or any named CSS color.

JavaScript

If you will be using the loading animation for a form that is submitted to the server (always resulting in a page reload) you can use the bind() method:

// Automatically trigger the loading animation on click
Ladda.bind( 'input[type=submit]' );

// Same as the above but automatically stops after two seconds
Ladda.bind( 'input[type=submit]', { timeout: 2000 } );

If you want JavaScript control over your buttons you can use the following approach:

// Create a new instance of ladda for the specified button
// Please note that this must be done after the button has been
// added to the DOM.
var l = Ladda.create( document.querySelector( '.my-button' ) );

// Start loading
l.start();

// Will display a progress bar for 50% of the button width
l.setProgress( 0.5 );

// Stop loading
l.stop();

// Toggle between loading/not loading states
l.toggle();

// Check the current state
l.isLoading();

All loading animations on the page can be stopped by using:

Ladda.stopAll();

Browser support

The project is tested in Chrome and Firefox. It Should Work™ in the current stable releases of Chrome, Firefox, Safari as well as IE9 and up.

License

MIT licensed

Copyright (C) 2013 Hakim El Hattab, http://hakim.se

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].