1010 Avenue, New York, NY 10018 US.

Mon-Sat, 8.00-18.00. Sunday CLOSED

Owl Carousal

<div data-dots="true" data-nav="true" data-items='{"0":{"items":2},"600":{"items":2}}' data-autoplay="true" data-margin="30" data-loop="true" class="owl-carousel owl-theme owl-nav-outer owl-dot-round">
	<div class="item"><img src="assets/images/s-01.jpg" class="radius-primary"/></div>
	<div class="item"><img src="assets/images/s-02.jpg" class="radius-primary"/></div>
	<div class="item"><img src="assets/images/s-03.jpg" class="radius-primary"/></div>
	<div class="item"><img src="assets/images/s-04.jpg" class="radius-primary"/></div>
	<div class="item"><img src="assets/images/s-05.jpg" class="radius-primary"/></div>
	<div class="item"><img src="assets/images/s-06.jpg" class="radius-primary"/></div>
<script src="assets/lib/owl.carousel/dist/owl.carousel.min.js"></script>
<link href="assets/lib/owl.carousel/dist/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/lib/owl.carousel/dist/assets/owl.theme.default.min.css" rel="stylesheet">
Navigation positions and shapes

Use the following classes or their combinations along with .owl-carousel.owl-theme to update the navigtation and dots scheme:

  1. .owl-dots-inner
  2. .owl-dot-round
  3. .owl-nav-outer
  4. .owl-nav-square
data-options={"dots": true, "autoplay": true, "loop": true, "items": 3}}
items Number3The number of items you want to see on the screen.
margin Number0margin-right(px) on item.
loop BooleanfalseInfinity loop. Duplicate last and first items to get loop illusion.
center BooleanfalseCenter item. Works well with even an odd number of items.
mouseDrag BooleantrueMouse drag enabled.
touchDrag BooleantrueTouch drag enabled.
pullDrag BooleantrueStage pull to edge.
freeDrag BooleanfalseItem pull to edge.
stagePadding Number0Padding left and right on stage (can see neighbours).
merge BooleanfalseMerge items. Looking for data-merge='{number}' inside item..
mergeFit BooleantrueFit merged items if screen is smaller than items value.
autoWidth BooleanfalseSet non grid content. Try using width style on divs.
startPosition Number/String0Start position or URL Hash string like '#id'.
URLhashListener BooleanfalseListen to url hash changes. data-hash on items is required.
BooleanfalseShow next/prev buttons.
rewind BooleantrueGo backwards when the boundary has reached.
Array['next','prev']HTML allowed.
StringdivDOM element type for a single directional navigation link.
slideBy Number/String1Navigation slide by x. 'page' string can be set to slide by page.
dots BooleantrueShow dots navigation.
dotsEach Number/BooleanfalseShow dots each x item.
dotData BooleanfalseUsed by data-dot content.
lazyLoad BooleanfalseLazy load images. data-src and data-src-retina for highres. Also load images into background inline style if element is not
lazyContent BooleanfalselazyContent was introduced during beta tests but i removed it from the final release due to bad implementation. It is a nice options so i will work on it in the nearest feature.
autoplay BooleanfalseAutoplay.
autoplayTimeout Number5000Autoplay interval timeout.
autoplayHoverPause BooleanfalsePause on mouse hover.
smartSpeed Number250Speed Calculate. More info to come..
fluidSpeed BooleanNumberSpeed Calculate. More info to come..
autoplaySpeed Number/Booleanfalseautoplay speed.
Number/BooleanfalseNavigation speed.
dotsSpeed BooleanNumber/BooleanPagination speed.
dragEndSpeed Number/BooleanfalseDrag end speed.
callbacks BooleantrueEnable callback events.
responsive Objectempty objectObject containing responsive options. Can be set to false to remove responsive capabilities.
responsiveRefreshRate Number200Responsive refresh rate.
responsiveBaseElement DOM elementwindowSet on any DOM element. If you care about non responsive browser (like ie8) then use it on main wrapper. This will prevent from crazy resizing.
video BooleanfalseEnable fetching YouTube/Vimeo/Vzaar videos.
videoHeight Number/BooleanfalseSet height for videos.
videoWidth Number/BooleanfalseSet width for videos.
animateOut String/BooleanfalseClass for CSS3 animation out.
animateIn String/BooleanfalseClass for CSS3 animation in.
fallbackEasing StringswingEasing for CSS2 $.animate.
info FunctionfalseCallback to retrieve basic information (current item/pages/widths). Info function second parameter is Owl DOM object reference.
nestedItemSelector String/ClassfalseUse it if owl items are deep nested inside some generated content. E.g 'youritem'. Dont use dot before class name.
itemElement StringdivDOM element type for owl-item.
stageElement StringdivDOM element type for owl-stage.
String/Class/ID/BooleanfalseSet your own container for nav.
dotsContainer String/Class/ID/BooleanfalseSet your own container for nav.

For more Details see Owl Carousel Documentation ⟶

Sign up for email alerts

Stay current with our latest insights

© Copyright 2018 Elixir Inc.