-
Notifications
You must be signed in to change notification settings - Fork 58
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
Showing
13 changed files
with
309 additions
and
750 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
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
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,81 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Demo</title> | ||
<style> | ||
body { | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
html, | ||
body, | ||
.swiper-wrapper { | ||
padding: 0; | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.a { | ||
background: yellowgreen; | ||
} | ||
.b { | ||
background: lightblue; | ||
} | ||
.c { | ||
height: 100%; | ||
} | ||
.a, | ||
.b { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: aliceblue; | ||
font-size: 4rem; | ||
} | ||
.swiper-slide { | ||
box-sizing: border-box; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.swiper-container { | ||
height: 50%; | ||
/* touch-action: none; */ | ||
} | ||
.swiper-slide-active { | ||
border: 2px solid salmon; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<script src="/lib/index.js"></script> | ||
|
||
<!-- Slider main container --> | ||
<div class="swiper-container" id="swiper1"> | ||
<!-- Additional required wrapper --> | ||
<div class="swiper-wrapper"> | ||
<!-- Slides --> | ||
<div class="a swiper-slide">1</div> | ||
<div class="b swiper-slide">2</div> | ||
<div class="a swiper-slide">3</div> | ||
<div class="b swiper-slide">4</div> | ||
<div class="b swiper-slide">5</div> | ||
<div class="b swiper-slide">6</div> | ||
</div> | ||
<!-- If we need pagination --> | ||
<div class="swiper-pagination"></div> | ||
</div> | ||
|
||
<script> | ||
var mySwiper = new Swiper('#swiper1', { | ||
speed: 300, | ||
spaceBetween: 100, | ||
slidesPerView: 2.4, | ||
centeredSlides: false, | ||
initialSlide: 5, | ||
mousewheel: true | ||
}); | ||
</script> | ||
</body> | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.