package.docs_src.templates.pages.demos.autoheight.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of owl.carousel Show documentation
Show all versions of owl.carousel Show documentation
Touch enabled jQuery plugin that lets you create beautiful responsive carousel slider.
The newest version!
---
title: Auto Height Demo
subTitle: Auto Height
nav: demos
description: autoHeight usage demo
sort: 5
tags:
- demo
- plugin
---
1
2
3
4
5
6
7
8
9
10
11
12
{{#markdown }}
### Overview
To enable use `autoHeight: true`. At the moment works only with 1 item on screen.
The plan is to calculate all visible items and change height according to heighest item.
```
//default settings:
AutoHeight.Defaults = {
autoHeight: false,
autoHeightClass: 'owl-height'
};
```
### Setup
```
$('.owl-carousel').owlCarousel({
items:1,
margin:10,
autoHeight:true
});
```
{{/markdown }}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy