Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery-slinky

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-slinky

Rather sweet menus

  • 4.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
890
increased by3.85%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 14 Jul 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc