circular-menu
Version:
cool,highly interactive circular menu
27 lines (21 loc) • 584 B
JavaScript
import Creator from "./Creator/index";
import extend from "./extend";
const defaultConfig = {
totalAngle: 360,//deg,
spaceDeg: 0,//deg
background: "#323232",
backgroundHover: "#515151",
pageBackground: "transparent",
percent: 0.32,//%
diameter: 300,//px
position: 'top',
horizontal: true,
animation: "into",
hideAfterClick: true
};
export default function (config) {
config = extend(defaultConfig, config);
this._creator = new Creator(this, config);
this._creator.createMenu();
return this;
}