softwaretailoring/wheelnav
概要
Raphaël.js(SVG/VML)をベースにした、アニメーション対応のホイールナビゲーション用JavaScriptライブラリです。パイメニュー(放射状メニュー、円形メニュー)など、さまざまな用途に利用できます。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルwheelnav.js
Animated wheel navigation JavaScript library based on modified Raphaël.js (SVG/VML).
It works on all major desktop and mobile browser.
Possible uses:
- tab navigation
- pie menu (radial menu, circular menu)
- sub menu
- option button
- checkboxes
- and more...
For more insight please visit https://wheelnavjs.softwaretailoring.net
Demos are available on CodePen
You can find answers on StackOverflow and GitHub issues
Using
Via JavaScript
HTML
<div id="divWheelnav"></div>
JS
var myWheelnav = new wheelnav("divWheelnav");
myWheelnav.slicePathFunction = slicePath().WheelSlice;
myWheelnav.colors = colorpalette.parrot;
myWheelnav.createWheel([icon.smile, icon.star, icon.fork, icon.$]);
Via data attributes
HTML
<div id="divWheelnav" data-wheelnav data-wheelnav-slicepath="WheelSlice" data-wheelnav-colors="#D80351,#F5D908,#00A3EE,#929292">
<div data-wheelnav-navitemicon="smile">smile</div>
<div data-wheelnav-navitemicon="star">star</div>
<div data-wheelnav-navitemicon="fork">fork</div>
<div data-wheelnav-navitemicon="$">donate</div>
</div>
JS
var myWheelnav = new wheelnav("divWheelnav");

The index.html of this repo (test page) is available here.
Install
wheelnav.js is available over npm
$ npm install wheelnav
and bower
$ bower install wheelnav
or CDN by jsDelivr
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/dist/raphael.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/dist/wheelnav.min.js"></script>
Author
Developer: Gábor Berkesi ([email protected])
Development environment: Visual Studio Community 2019
License
Licensed under MIT. Enjoy the spinning.
Buy me a beer - if you want to keep in spinning. Thanks a lot!
関連プロジェクトを探す
読み込み中…