1.2.0 β€’ Published 5 years ago

@barthachijuu/circularmenu v1.2.0

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

dependencies Status devDependencies Status Build status codecov GitHub package.json version npm npm HitCount License: MIT

circularmenu



Browsers Support

Edge+latestlatestlatestlatest

πŸš€ 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

ParameterDescriptionValuesDefault valueAvailable since
iconcolorSet the color of iconsstringblue-7v1.0.0
iconInSet the animtion entancestring ease/linear/ease-in/ease-out/ease-in-outease-inv1.0.0
iconOutSet the animation exitstring ease/linear/ease-in/ease-out/ease-in-outease-outv1.0.0
menuElemSet the number of elements in the menuarrayan example listv1.0.0
animationEntranceSet the animation entrance of the menustring bounce/puff-in/slide-inbouncev1.2.0
animationTypeSet the animation when over a voicestring onTop/onside/explodeonTopv1.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)

ClassColorGradation
icon-gray-{0-7}Grayfrom #f8f9fa #f8f9fa to #343a40 #343a40
icon-red-{0-7}Redfrom #fff5f5 #fff5f5 to #c92a2a #c92a2a
icon-pink-{0-7}Pinkfrom #fff0f6 #fff0f6 to #a61e4d #a61e4d
icon-grape-{0-7}Grapefrom #f8f0fc #f8f0fc to #862e9c #862e9c
icon-violet-{0-7}Violetfrom #f3f0ff #f3f0ff to #5f3dc4 #5f3dc4
icon-indigo-{0-7}Indigofrom #edf2ff #edf2ff to #364fc7 #364fc7
icon-blue-{0-7}Bluefrom #e7f5ff #e7f5ff to #1864ab #1864ab
icon-cyan-{0-7}Cyanfrom #e6fcf5 #e6fcf5 to #0b7285 #0b7285
icon-teal-{0-7}Tealfrom #e6fcf5 #e6fcf5 to #087f5b #087f5b
icon-green-{0-7}Greenfrom #ebfbee #ebfbee to #2b8a3e #2b8a3e
icon-lime-{0-7}Limefrom #f4fce3 #f4fce3 to #5c940d #5c940d
icon-yellow-{0-7}Yellowfrom #fff9db #fff9db to #e67700 #e67700
icon-orange-{0-7}Orangefrom #fff9f1 #fff9f1 to #d9480f #d9480f
icon-brown-{0-7}Brownfrom #f5deb3 #f5deb3 to #a52a2a #a52a2a

CircularMeu Preview

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!

npm.io npm.io npm.io

πŸ‘‘ Sponsors

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.

πŸ‘” Backers

Thank you to all our backers! πŸ™ Become a backer on patreon.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

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

1.2.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago