Server IP : 128.199.20.84 / Your IP : 172.70.126.42 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0775) : /var/www/html/panel_assets/css/slider/owlcarousel/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
# OwlCarousel2 is currently being transferred to a new owner Stay tuned while the new owner sorts through some stuff. (Oh, hi, I'm [David](https://github.com/daviddeutsch)!) ## 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/.** ## Quick start ### Install This package can be installed with: - [npm](https://www.npmjs.com/package/owl.carousel): `npm install --save owl.carousel` - [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 Load the required stylesheet and JS: ```js import 'owl.carousel/dist/assets/owl.carousel.css'; import $ from 'jquery'; import 'imports?jQuery=jquery!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). ## License The code and the documentation are released under the [MIT License](LICENSE).