Interface IFlipsnap

Index

Properties

Methods

Properties

public element: HTMLElement

Methods

public hasNext(): boolean

Return true or false. true is returned when there is next element.

Returns

boolean

public hasPrev(): boolean

Return true or false. true is returned when there is previous element.

Returns

boolean

public moveToPoint(point: number, transitionDuration?: number)

Move to item of number.

Parameters

  • point: number
  • transitionDuration?: number optional

public refresh()

Recalculate values

public toNext(transitionDuration?: number)

Move to next item.

Parameters

  • transitionDuration?: number optional

public toPrev(transitionDuration?: number)

Move to previous item.

Parameters

  • transitionDuration?: number optional