Home Manual Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Glider: class

Paraglider plugin.

Function Summary

Static Public Function Summary
public

Belt animation slider.

public

Cover left animation slider

public

Cover left/right animation slider

public

Cover right animation slider

public

dataWrapper(glider: Element, opts: DATA_DEFAULTS): function

Wraps Paraglider to apply pagers and navigation buttons and autoplay.

public

Belt animation slider.

public

Wrapper including navigation arrows.

public

Simple wrapper including pagers and navigation arrows.

Static Private Function Summary
private

animate(speed: integer, from: number, to: number, callback: animationCallback): function

Animates from one value to the other over a given time.

private

arrayOrValue(arr: array): any

Takes an array and returns a single value if it is the only item.

private

eitherOr(either: any, or: any): any

Returns either the first or second value depending on truthness.

private

findAll(selector: string, context: Element): array

Helper to get elements.

private

findFirst(selector: string, context: Element): Element

Helper to get elements.

private

modLoop(current: number, addition: number, length: number): number

A loop using modulo

private

parseObject(dataset: dataset): object

Parse dataset with nested object strings to a true object

private

Prevents default event

private

toggleClass(el: Element, className: string, bool: boolean)

Toggle class ponyFill to support IE11 and other awkward browsers.

version [version]

Variable Summary

Static Public Variable Summary
public

Defaults for the presets.

public

Defaults for the presets.

Static Private Variable Summary
private

Default classList for the plugin.

Typedef Summary

Static Public Typedef Summary
public
public

Callback when the Glider has been destroyed

public

onEnd(data: callbackData, slides: Array<Element>, options: callbackOptions): *

Callback when the Glider stopped moving

public

Callback when the Glider has been created

public

onSlide(progress: number, data: callbackData, slides: Array<Element>, options: callbackOptions): *

Callback while the Glider is moving

Static Private Typedef Summary
private

animationCallback(progress: number): *