Flip

Component Flip
Source:
Parameters:
Name Type Description
$ jQuery Instance of jQuery
Returns:
List of flip methods
Type
Object

Methods

(static) calcSlideSizeInToggle($slide) → {number}

Source:
calcSlideSizeInToggle calculates size of slide content
Parameters:
Name Type Description
$slide jQuery.<DOMElement> Slide DOM Element of flip component
Returns:
size
Type
number

(static) equalSideHeight($el)

Source:
equalSideHeight set css "min-height" property with value that is equal to size of bigger flip side
Parameters:
Name Type Description
$el jQuery.<DOMElement> Root DOM element of Flip component wrapped by jQuery

(static) equalSideHeightInToggle($el)

Source:
equalSideHeightInToggle method that called from component toggle to make all slides inside same height
Parameters:
Name Type Description
$el jQuery.<DOMElement> Root DOM element of Flip component wrapped by jQuery

(static) init()

Source:
init method calls in a loop for each flip component on a page and runs Flip's "initInstance", "equalSideHeight" methods. Added watcher to "resize" event on window that call "calcHeightOnResize"

(static) initInstance(component)

Source:
initInstance method binds toggling "active" class for component an Flip element
Parameters:
Name Type Description
component jQuery Root DOM element of flip component wrapped by jQuery