在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):alizahid/slinky开源软件地址(OpenSource Url):https://github.com/alizahid/slinky开源编程语言(OpenSource Language):JavaScript 85.0%开源软件介绍(OpenSource Introduction):SlinkyRather sweet menus A light-weight, responsive, mobile-like navigation menu plugin DemoInstallationDownload the latest version. The files you need are Bower
Include these files <link rel="stylesheet" src="bower_components/slinky/dist/slinky.min.css" />
<script src="bower_components/slinky/dist/slinky.min.js"></script> NPM
Include these files <link rel="stylesheet" src="node_modules/slinky/dist/slinky.min.css" />
<script src="node_modules/slinky/dist/slinky.min.js"></script> Usageconst slinky = $('.menu').slinky(options) Options
API
|
Option | Default value | Description |
---|---|---|
animate |
true |
Pass false to skip animation |
.jump(target, animate)
Navigate to a sub menu
Option | Default value | Description |
---|---|---|
to |
Selector for ul target to jump to |
|
animate |
true |
Pass false to skip animation |
.destroy()
Remove Slinky
.active
on a ul
element to jump there on init
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论