MCPcopy Index your code
hub / github.com/alizahid/slinky

github.com/alizahid/slinky @4.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 4.2.1 ↗ · + Follow
13 symbols 26 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Slinky

Rather sweet menus

A light-weight, responsive, mobile-like navigation menu plugin

Demo

Installation

Download the latest version. The files you need are

Bower

bower install jquery-slinky

Include these files

<link rel="stylesheet" src="https://github.com/alizahid/slinky/raw/4.2.1/bower_components/slinky/dist/slinky.min.css" />
<script src="https://github.com/alizahid/slinky/raw/4.2.1/bower_components/slinky/dist/slinky.min.js"></script>

NPM

npm install jquery-slinky

Include these files

<link rel="stylesheet" src="https://github.com/alizahid/slinky/raw/4.2.1/node_modules/slinky/dist/slinky.min.css" />
<script src="https://github.com/alizahid/slinky/raw/4.2.1/node_modules/slinky/dist/slinky.min.js"></script>

Usage

const slinky = $('.menu').slinky(options)

Options

Option Default Description
resize true Resize menu height to match content on navigation
speed 300 Animation speed in milliseconds
theme slinky-theme-default Slinky theme
title false Show title of sub menu

API

.home(animate)

Navigate back to the root menu

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

Tips

  • Set .active on a ul element to jump there on init

Core symbols most depended-on inside this repo

_transition
called by 5
src/slinky.js
_move
called by 4
src/slinky.js
_resize
called by 4
src/slinky.js
_init
called by 1
src/slinky.js
_addListeners
called by 1
src/slinky.js
_jumpToInitial
called by 1
src/slinky.js
jump
called by 1
src/slinky.js
options
called by 0
src/slinky.js

Shape

Method 11
Class 2

Languages

TypeScript100%

Modules by API surface

src/slinky.js13 symbols

For agents

$ claude mcp add slinky \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact