Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
owl.carousel2
Advanced tools
Touch enabled jQuery plugin that lets you create beautiful responsive carousel slider.
Readme
PR #2021 is merged. Please follow OwlCarousel2.
This plugin is a fork of original plugin OwlCarousel2 with a fix that maintains the event binded to the slides while creating cloned slides when loop:true
Until the PR #2021 is merged, feel free to use this repo in your projects.
Touch enabled jQuery plugin that lets you create a beautiful, responsive carousel slider.
Or download the latest release.
Load the required stylesheet and JS:
import 'owl.carousel2/dist/assets/owl.carousel.css';
import $ from 'jquery';
import 'imports?jQuery=jquery!owl.carousel';
Put the required stylesheet at the top of your markup:
<link rel="stylesheet" href="/node_modules/owl.carousel2/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 of your markup right after jQuery:
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/owl.carousel2/dist/owl.carousel.min.js"></script>
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:
<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 function and your carousel is ready.
$(document).ready(function(){
$('.owl-carousel').owlCarousel();
});
This package comes with Grunt and Bower. 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 and QUnit tests headlessly in PhantomJS.To define which plugins are build into the distribution just edit /_config.json
to fit your needs.
Please read CONTRIBUTING.md.
The code and the documentation are released under the MIT License.
FAQs
Touch enabled jQuery plugin that lets you create beautiful responsive carousel slider.
The npm package owl.carousel2 receives a total of 1,194 weekly downloads. As such, owl.carousel2 popularity was classified as popular.
We found that owl.carousel2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.