Socket
Socket
Sign inDemoInstall

jquery-slinky

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jquery-slinky

Rather sweet menus


Version published
Weekly downloads
791
decreased by-33.02%
Maintainers
1
Install size
96.6 kB
Created
Weekly downloads
 

Readme

Source

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="bower_components/slinky/dist/slinky.min.css" />
<script src="bower_components/slinky/dist/slinky.min.js"></script>

NPM

npm install jquery-slinky

Include these files

<link rel="stylesheet" src="node_modules/slinky/dist/slinky.min.css" />
<script src="node_modules/slinky/dist/slinky.min.js"></script>

Usage

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

Options

OptionDefaultDescription
resizetrueResize menu height to match content on navigation
speed300Animation speed in milliseconds
themeslinky-theme-defaultSlinky theme
titlefalseShow title of sub menu

API

.home(animate)

Navigate back to the root menu

OptionDefault valueDescription
animatetruePass false to skip animation

.jump(target, animate)

Navigate to a sub menu

OptionDefault valueDescription
toSelector for ul target to jump to
animatetruePass false to skip animation

.destroy()

Remove Slinky

Tips

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

Keywords

FAQs

Last updated on 14 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc