# Owl Carousel 2
Touch enabled [jQuery](https://jquery.com/) plugin that lets you create a beautiful, responsive carousel slider. **To
get started, check out https://owlcarousel2.github.io/OwlCarousel2/.**
**Notice:** The old Owl Carousel site (owlgraphic [dot] com) is no longer in use. Please delete all references to this
in bookmarks and your own products' documentation as it's being used for malicious purposes.
## Quick start
### Install
This package can be installed with:
- [npm](https://www.npmjs.com/package/owl.carousel): `npm install --save owl.carousel` or `yarn add owl.carousel jquery`
- [bower](http://bower.io/search/?q=owl.carousel): `bower install --save owl.carousel`
Or download the [latest release](https://github.com/OwlCarousel2/OwlCarousel2/releases).
### Load
#### Webpack
Add jQuery via the "webpack.ProvidePlugin" to your webpack configuration:
const webpack = require('webpack');
//...
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
}),
],
//...
Load the required stylesheet and JS:
```js
import 'owl.carousel/dist/assets/owl.carousel.css';
import 'owl.carousel';
```
#### Static HTML
Put the required stylesheet at the [top](https://developer.yahoo.com/performance/rules.html#css_top) of your markup:
```html
<link rel="stylesheet" href="/node_modules/owl.carousel/dist/assets/owl.carousel.min.css" />
```
```html
<link rel="stylesheet" href="/bower_components/owl.carousel/dist/assets/owl.carousel.min.css" />
```
**NOTE:** If you want to use the default navigation styles, you will also need to include `owl.theme.default.css`.
Put the script at the [bottom](https://developer.yahoo.com/performance/rules.html#js_bottom) of your markup right after
jQuery:
```html
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
```
```html
<script src="/bower_components/jquery/dist/jquery.js"></script>
<script src="/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
```
### Usage
Wrap your items (`div`, `a`, `img`, `span`, `li` etc.) with a container element (`div`, `ul` etc.). Only the
class `owl-carousel` is mandatory to apply proper styles:
```html
<div class="owl-carousel owl-theme">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
</div>
```
**NOTE:** The `owl-theme` class is optional, but without it, you will need to style navigation features on your own.
Call the [plugin](https://learn.jquery.com/plugins/) function and your carousel is ready.
```javascript
$(document).ready(function(){
$('.owl-carousel').owlCarousel();
});
```
## Documentation
The documentation, included in this repo in the root directory, is built with [Assemble](http://assemble.io/) and
publicly available at https://owlcarousel2.github.io/OwlCarousel2/. The documentation may also be run locally.
## Building
This package comes with [Grunt](http://gruntjs.com/) and [Bower](http://bower.io/). The following tasks are available:
* `default` compiles the CSS and JS into `/dist` and builds the doc.
* `dist` compiles the CSS and JS into `/dist` only.
* `watch` watches source files and builds them automatically whenever you save.
* `test` runs [JSHint](http://www.jshint.com/) and [QUnit](http://qunitjs.com/) tests headlessly
in [PhantomJS](http://phantomjs.org/).
To define which plugins are build into the distribution just edit `/_config.json` to fit your needs.
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md).
## Roadmap
Please make sure to check out our [Roadmap Discussion](https://github.com/OwlCarousel2/OwlCarousel2/issues/1756).
## License
The code and the documentation are released under the [MIT License](LICENSE).
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该项目由机器学习和数据科学女性 (WiMLDS) 波兰当地分会的一群女性于 2020 年创建,旨在成为一个针对机器学习可以帮助解决的现实生活问题的培训项目和协作 。 该 Web 应用程序由 Magdalena Kortas(后端 - 深度学习、Python 和 Flask)和 Aleksandra Zachariasz(前端 - Flask、CSS、JS、HTML5 和图形设计)开发。
资源推荐
资源详情
资源评论
收起资源包目录
Sound-based-bird-species-detection-master.zip (60个子文件)
research
spectogram_v2.ipynb 337KB
EmberizaCitrinella_spectogram.ipynb 94KB
prepareData.ipynb 7KB
birds_singing_examples.ipynb 6.37MB
spectogram_v1.ipynb 61KB
app
app.py 3KB
main.py 60B
data
bird_data.xlsx 6KB
templates
result.html 835B
not_a_bird.html 514B
upload.html 2KB
base.html 10KB
error.html 421B
upload.css 611B
core.py 3KB
model
model.h5 29.71MB
requirements.txt 159B
static
bootstrap.min.css 118KB
js
bootstrap.js 68KB
npm.js 484B
bootstrap.min.js 36KB
styles
mainpage.css 2KB
mainpage1.css 573B
owlcarousel
assets
owl.theme.green.min.css 1013B
owl.carousel.css 5KB
owl.video.play.png 5KB
owl.theme.default.css 1KB
ajax-loader.gif 3KB
owl.theme.green.css 1KB
owl.theme.default.min.css 1013B
owl.carousel.min.css 3KB
owl.carousel.min.js 43KB
owl.carousel.js 88KB
README.md 4KB
css
bootstrap-theme.min.css.map 25KB
bootstrap-theme.css.map 47KB
bootstrap-theme.css 26KB
bootstrap.css.map 380KB
bootstrap-theme.min.css 23KB
bootstrap.min.css.map 529KB
owlcarousel.js 182B
images
sylvi.jpg 54KB
travolta.gif 3.74MB
ptak.png 123KB
phyll.jpg 209KB
ember.jpg 102KB
ptak1.png 112KB
olala.png 1.48MB
WDlogo.png 377KB
acroc.jpg 186KB
voicelab.png 6KB
madzia.png 617KB
parus.jpg 452KB
fonts
glyphicons-halflings-regular.svg 114KB
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.woff2 18KB
medium.ipynb 1.45MB
README.md 4KB
共 60 条
- 1
资源评论
Meta.Qing
- 粉丝: 2w+
- 资源: 117
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功