-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
972194e
commit 7f74539
Showing
2 changed files
with
158 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Owl Carousel demo</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" /> | ||
|
||
<!-- Owl Carousel CSS --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"> | ||
<link rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css"> | ||
|
||
<!-- Demo styles --> | ||
<style> | ||
.home-demo .item { | ||
background: #ff3f4d; | ||
} | ||
|
||
.home-demo h2 { | ||
color: #FFF; | ||
text-align: center; | ||
padding: 5rem 0; | ||
margin: 0; | ||
font-style: italic; | ||
font-weight: 300; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<!-- Owl Carousel --> | ||
<div class="home-demo"> | ||
<h3>Carousel</h3> | ||
<div class="owl-carousel owl-theme"> | ||
<div class="item"> | ||
<h2>Swipe</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Drag</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Responsive</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>CSS3</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Fast</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Easy</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Free</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Upgradable</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Tons of options</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Infinity</h2> | ||
</div> | ||
<div class="item"> | ||
<h2>Auto Width</h2> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Owl Carousel JS --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> | ||
|
||
<!-- Initialize Swiper --> | ||
<script> | ||
$(function () { | ||
// Owl Carousel | ||
var owl = $(".owl-carousel"); | ||
owl.owlCarousel({ | ||
items: 3, | ||
margin: 10, | ||
loop: true, | ||
nav: true | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters