0.0.3 • Published 8 years ago

breathingbutton v0.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

BreathingButton

This is a react component of a breathing button. It makes use of MDButton and anime

Demo

demo

Install

npm install breathingbutton

Usage

Properties

  • isDisabled: Bool - determine whether or not the button is disabled.
  • theme: String'default', 'primary', 'danger' - bootstrap like theme.
  • href: String - url redirect after clicked.
  • targetScale: number - the target scale that the button is animated to. See anime. The value usually lies in 0, 2, but it can be some crazy number either. Try it yourself. (default to 1.05)
  • period: number - breathing period of button in milliseconds. (default to 1000)
  • onClick: Function - function to be called when the button is clicked