Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Flex Boxes

Flip Boxes are individual slide shows that flip to the back side when hovered (or clicked on mobile devices). The backside displays a short excerpt along with a link to the appropriate content. This is desiged to work best with 3 flip boxes, but any number can be defined by overriding the default in attributes (see below). Flex box images and data are stored in a separate blog called “Flex Boxes” (“/flex-boxes”). Combinations of selections can be selected by defining categorires.

Used On Pages

Home

Usage

collectionControl(Selector, Collection Slug, Display Type, Attributes)

Parameters:

Parameter Description
Selector Required.
jQuery selector identification where the resulting html code will be generated. Note that the selector must be unique on the page.
Collection Slug flex-boxes
Display Type Required.
Identifies the display type requested. For Flex Boxes must be "flexboxes". These are case sensitive parameters.
Attributes Optional.
Identifies parameters to override default values. The parameters are passed in a object array of key/value pairs. Each display type has different default values as described below.

Attributes:

All attributes are optional, the defaults are defined.

Attribute Description Default
FindCats This is a comma delimeted list of categories. The blog entry must have one or more of these categories in order to be includede. If this attreibute is not defined, then all blog entries from the defined blog will be included. Null
flipSpeed Defines the speed, in seconds, that the flip boxes will flip when user hovers over them. Expecting a floating point number with following optional "s". 0.8s

Example code block for control

<script>
$(document).ready(function() {
  collectionControl(
    '#flexBoxes',
    'flex-boxes',
    'flexboxes',
     {findcats: "Home",
      flipSpeed: "2s"}
  );
})
</script>
<div id="flexBoxes"></div>

Reference Blog

Flex Boxes

Example Screenshot

Alt Home Page Flip Boxes