Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 42 lines (23 sloc) 1.101 kb
9c38d7b Luca Scarpa release 1.0
authored
1 Class: PillMenu {#PillMenu}
2 =========================================
3
4 PillMenu is a MooTools-based class that adds a nice effect to menu.
5
6 ### Implements:
7
8 Options, Events
9
10
11 PillMenu Method: constructor {#PillMenu:constructor}
12 -------------------------------------------------------------------
13
14
15 ### Syntax:
16
17 var myMenu = new PillMenu(element,options);
18
19 ### Arguments:
20
21 1. element - (*string*) The ID of element to apply the script
22 2. options - (*object*) The options for the PillMenu instance.
23
24 ### Options:
25
26 * vertical: (*int*, defaults to 0) Make the movement horizontal or vertical
27 * pillClass: (*string*, defaults to 'pill') Name of class to give to pill element
28 * selectedClass: (*string*, defaults to 'selected') Name of class of selected menu item
29 * duration: (*string*, defaults to 'short') Time of duration of transition
30 * transition: (*object*, defaults to 'Fx.Transitions.Linear') Transition to apply
31
32 ### Events:
33
34 ### onStart
35
36 * (*function*) Function to execute when the start the script
37
38 ### onChange
39
40 * (*function*) Function to execute when the mouse change from an item to another
41
Something went wrong with that request. Please try again.