circularmenu
Browsers Support
Edge+ | latest | latest | latest | latest |
🚀 Getting Started
npm install --save-dev @barthachijuu/circularmenu
or
yarn add -D @barthachijuu/circularmenu
📝 Usage
<div id="your_container"></div>
import CircularMenu from '@barthachijuu/circularmenu';
const menu = new CircularMenu('your_container');
menu.init();
You can set options
to new CirclueMenu('your_container', options);
example:
const CircularMenu = require("@barthachijuu/circularmenu");
const options = {
iconColor: 'blue-7',
animationIn: 'ease-in',
animationEntrance: 'bounce',
animationOut: 'ease-out',
animationType: 'onTop',
menuElem: [...],
...
};
const menu = new CircularMenu('your_container', options);
menu.init();
Below is available a description of options
values.
🧰 Options
Parameter | Description | Values | Default value | Available since |
---|---|---|---|---|
iconcolor | Set the color of icons | string | blue-7 | v1.0.0 |
iconIn | Set the animtion entance | string [ease/linear/ease-in/ease-out/ease-in-out] | ease-in | v1.0.0 |
iconOut | Set the animation exit | string [ease/linear/ease-in/ease-out/ease-in-out] | ease-out | v1.0.0 |
menuElem | Set the number of elements in the menu | array | [an example list] | v1.0.0 |
animationEntrance | Set the animation entrance of the menu | string [bounce/puff-in/slide-in] | bounce | v1.2.0 |
animationType | Set the animation when over a voice | string [onTop/onside/explode] | onTop | v1.2.0 |
Note: At the moment, the maximun number of elements in menuElem, is limited to 8 If you want more animation type don't esitate to open a pull request
🎨 Palette
Below, the possible color combination to use for the icon. (If you want more, don't esitate to open a pull request)
You can view a demo by click here
🎁 Support: Donate
This project is free, open source and I try to provide excellent free support. Why donate? I work on this and other project for several hours in my spare time between my job and my lovely family, and try to keep it up to date and working. THANK YOU!
👑 Sponsors
Support this project by becoming a sponsor.
👔 Backers
Thank you to all our backers!
✨
Contributors Thanks goes to these wonderful people (emoji key):
Bartolo Amico |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
This project is licensed under the MIT license, Copyright (©) 2020 Bartolomeo Amico. For more information see LICENSE.md