1.0.3 ā€¢ Published 5 years ago

butterfly-radio v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

šŸ¦‹ butterfly-radio šŸ¦‹

butterfly-radio_sample

šŸŒ» Change html radio button to butterfly animation.

šŸŒ¼ Installation

šŸŒŗ In a browser:

<script src="butterfly-radio.js"></script>

šŸŒŗ Using npm:

$ npm install butterfly-radio

šŸŒŗ In Node.js:

const butterflyRadio = require("butterfly-radio");
butterflyRadio();

šŸŒ¼ Usage

<butterfly-radio name="flower">
  <input type="radio" value="1"><label>Red flower</label>
  <input type="radio" value="2"><label>Green flower</label>
  <input type="radio" value="3"><label>Blue flower</label>
</butterfly-radio>

šŸŒ» The name attribute and id attribute of the <input> element can be omitted.

šŸŒ» The for attribute of the <label> element can be omitted.

šŸŒ¼ License

butterfly-radio is created under the MIT license.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago