You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview 

BPD websites use a jQuery plugin called Owl Carousel to render responsive sliding carousels in widgets such as:

 

With the release of Owl Carousel 2 comes additional functionality, especially around transition animations.  This article will detail the options available within the CMS, as well as show some working examples. 

 

Prerequisites

BPD websites on version 4.05+ will automatically use version 2 of the Owl Carousel. If your site is on an older version and you'd like to take advantage of the new carousel options, please contact us to discuss an upgrade.

Option nameDefinition
itemsThe number of items (product tiles, banners, articles) visible on the carousel stage at any one time
marginThe right margin (in pixels) for each item
loopPlays the carousel on infinite loop
centerCenters the starting/current item and shows partial previous/next items
mouseDragAllows dragging via mouse
touchDragAllows dragging on touchscreens
stagePaddingAdds padding (in pixels) to the stage, making part of the neighbouring, off-stage L/R items visible
autoWidthAllows variable width for items in the carousel
startPositionThe slide number to start on when the page loads
navShows next/prev buttons
rewindSlides backward to the beginning of carousel when the last item is reached (rather than looping forward to first item)
navTextThe text for prev/next buttons when 'nav' is enabled (can use HTML)
navElementWhen 'nav' is enabled, this is the HTML container type for prev/next buttons (defaults to div)
slideBySlides by whole page ('page') or by the specified number ('X') of slide items
dotsShows dot indicators which can be used for navigation
dotsEachSpecify 'true' to display a dot for each slide, or 'X' to show a dot for every 'X' slides
autoplaySlides items automatically, without user intervention
autoplayTimeoutThe interval time (milliseconds) before autoplay begins, as well as between each slide animation
autoplayHoverPausePauses the animation on mouse hover
smartSpeedThe time (milliseconds) for all slide animations to complete.
autoplaySpeedThe time (milliseconds) for the autoplay slide animation to complete when autoplay is on.
navSpeedThe time (milliseconds) for the next/prev navigation slide animation to complete (doesn't apply to dots or autoplay)
dotsSpeedThe time (milliseconds) for the dot navigation slide animation to complete (doesn't apply to next/prev or autoplay)
dragEndSpeedThe time (milliseconds) for the animation to complete once you stop dragging the slider left or right
callbacksListens for specific events and allows advanced .js manipulatiopn of the carousel (contact CV for assistance)
responsiveAllows advanced owl carousel option manipulation at different breakpoints
responsiveRefreshRateThe time (milliseconds) before the carousel refreshes after changing breakpoints
videoAllows video in tiles (requires specific HTML - contact CV for assistance)
videoHeightSpecifies video height
videoWidthSpecifies video width
animateOutThe animation effect when an item is exiting the user's view
animateInThe animation effect when an item is entering the user's view
itemElementThe HTML container type for individual items (defaults to div)
stageElementThe HTML container type for the entire stage (defaults to div)
navContainerAllows you to have the nav located in your own custom HTML container
dotsContainerAllows you to have the dots located in your own custom HTML container
  • No labels