All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.docs_src.templates.pages.demos.mousewheel.hbs Maven / Gradle / Ivy

Go to download

Touch enabled jQuery plugin that lets you create beautiful responsive carousel slider.

The newest version!
---
title: Mousewheel Demo
subTitle: Mousewheel
nav: demos
description: Mousewheel usage demo
sort: 1

tags: 
- demo
- external
---



{{#markdown }}
### Overview

To add mouswheel scrolling just include the fantastic plugin jquery.mousewheel.js created by Brandon Aaron. 
[Link to plugin GitHub page](https://github.com/brandonaaron/jquery-mousewheel)



### Setup
```
var owl = $('.owl-carousel');

owl.owlCarousel({
	loop:true,
	nav:true,
	margin:10,
	responsive:{
		0:{
			items:1
		},
		600:{
			items:3
		},			
		960:{
			items:5
		},
		1200:{
			items:6
		}
	}
});

owl.on('mousewheel', '.owl-stage', function (e) {
    if (e.deltaY>0) {
		owl.trigger('next.owl');
    } else {
		owl.trigger('prev.owl');
    }
    e.preventDefault();
});

```

{{/markdown }} 






© 2015 - 2024 Weber Informatics LLC | Privacy Policy