Edge+ | latest | latest | latest | latest |
npm install --save-dev @barthachijuu/circularmenu
or
yarn add -D @barthachijuu/circularmenu
<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.
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
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
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!
Support this project by becoming a sponsor. π Become a sponsor on patreon or become top3 sponsor on ko-fi. Your logo will show up here with a link to your website.
Thank you to all our backers! π Become a backer on patreon.
Thanks goes to these wonderful people (emoji key):
Bartolo Amico π» π π π€ π π§ π π |
This project follows the all-contributors specification. Contributions of any kind welcome!
This project is licensed under the MIT license, Copyright (Β©) 2020 Bartolomeo Amico. For more information see LICENSE.md