Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldbutton

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldbutton

css for buttons that load

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
917
increased by38.94%
Maintainers
1
Weekly downloads
 
Created
Source

Loading Buttons

CSS for button that loads. check https://loading.io/button/ for more information.

usage

install with npm:

npm install --save ldbutton

include required css file ( you may also need loading.css for spinner related css ):

<link rel="stylesheet" type="text/css" href="path-to-ldbutton-css-file"/>

add class for one of the desired effect to your button, along with a loader inside:

<div class="btn btn-primary ld-ext-right">
  <div class="ld ld-ball ld-bounce"></div>
</div>
  • The ld-ball and ld-bounce classes used here are from loading.css. You can use your own animation.
  • The class ld is required for loading buttons to identify the loader element.
  1. Trigger the loading animation by adding "running" class in the button:

You can also use ldloader to manipulate loader's state.

For more information about how to use loading buttons, please check the online documentation here.

License

MIT.

FAQs

Package last updated on 01 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc