bonze $.plugin()

Register reusable methods that become available on every bonze instance. Plugin signature: ($el, index, allElements, ...args).

Simple plugin - no arguments

Register a plugin once and call it on any selection.

alpha
beta
gamma
delta
epsilon

      

Plugin with arguments

Extra arguments passed when calling the plugin are forwarded to the handler.

alpha
beta
gamma
delta

      

Plugin using index

The plugin receives each element's index, useful for staggered effects.

item-0
item-1
item-2
item-3
item-4