components

Owl Carousel

HTML
<div data-options='{"nav":true,"loop":true,"autoplay":true,"items":2}' class="owl-carousel owl-theme owl-nav-outer owl-dot-round">
	<div class="item"><img src="assets/images/gallery-1.jpg"/></div>
	<div class="item"><img src="assets/images/gallery-2.jpg"/></div>
	<div class="item"><img src="assets/images/gallery-7.jpg"/></div>
	<div class="item"><img src="assets/images/gallery-10.jpg"/></div>
	<div class="item"><img src="assets/images/gallery-5.jpg"/></div>
	<div class="item"><img src="assets/images/gallery-6.jpg"/></div>
</div>
JavaScript
<script src="assets/lib/owl.carousel/dist/owl.carousel.min.js"></script>
CSS
<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
Options
data-optionsobject
Example
data-options={"dots": true, "autoplay": true, "loop": true, "items": 3}}
OptionTypeDefaultsDescription
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 <img>
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 ⟶

AboutConnectTerms & Products

N

(212) 123-4567 666 Unnamed ave, california nirvana@abc.com

powered by Themewagon