Infinity gauntlet button for react
yarn:
yarn add react-thanos-glove
npm:
npm install --save react-thanos-glove
import ThanosGlove from 'react-thanos-glove'
...
<ThanosGlove onClick={handleClick} />
<ThanosGlove size={100} type="time" onAnimationEnd={handleAnimationEnd} mute />
...
- Button's height and width. (px)
- Anmation's duration. (ms)
- Button's type
- Whether mute the action sound
- Glove onClick handler
If you want to change type of the glove, use this api rather than onClick
- Triggered when glove animation is ended