Transform an HTML button to a touch-and-hold (long press) button
npm install touch-and-hold-buttonTransform a HTML button to a touch-and-hold (long press) button.
- Prevent accidental button press with hold confirmation
- Works with or without Bootstrap
- Demo page
- GitHub repository
- npm package
``html`
`javascript``
this.props = {
holdDuration: 1000,
fillColor: "rgba(0,0,0,0.1)",
confirmedShadow: "0 0 0 5px rgba(0,100,0,0.5)"
}
---
Find more high quality modules from shaack.com
on our projects page.