This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Mobius1
committed
Nov 27, 2018
1 parent
9ba060b
commit ffa13e4
Showing
8 changed files
with
216 additions
and
6 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,164 @@ | ||
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"); | ||
body { | ||
margin: 0; | ||
font-family: "Roboto Mono"; | ||
overflow: hidden; | ||
background-color: #373737; | ||
font-size: 40px; | ||
font-weight: bold; | ||
} | ||
|
||
pre { | ||
background-color: #3a3a3a; | ||
padding: 20px; | ||
border-radius: 5px; | ||
} | ||
|
||
section { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-flow: row; | ||
color: #fff; | ||
position: relative; | ||
} | ||
|
||
#page-1 { | ||
background-color: #3F51B5; | ||
} | ||
|
||
#page-2 { | ||
background-color: #673AB7; | ||
} | ||
|
||
#page-3 { | ||
background-color: #9C27B0; | ||
} | ||
|
||
#page-4 { | ||
background-color: #E91E63; | ||
} | ||
|
||
#page-5 { | ||
background-color: #F44336; | ||
} | ||
|
||
#page-6 { | ||
background-color: #4CAF50; | ||
} | ||
|
||
#page-1-clone { | ||
background-color: #3F51B5; | ||
} | ||
|
||
#page-6-clone { | ||
background-color: #4CAF50; | ||
} | ||
|
||
nav { | ||
height: 100vh; | ||
position: fixed; | ||
top: 0; | ||
z-index: 100; | ||
right: 20px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
nav ul li a span { | ||
background: #fff; | ||
} | ||
|
||
nav li { | ||
display: block; | ||
width: 10px; | ||
height: 10px; | ||
margin: 16px; | ||
position: relative; | ||
} | ||
|
||
nav span:after { | ||
background: rgba(255, 255, 255, 0.15); | ||
position: absolute; | ||
content: ""; | ||
display: block; | ||
top: 4px; | ||
left: 4px; | ||
right: 4px; | ||
bottom: 4px; | ||
border-radius: 100%; | ||
transition: 0.3s; | ||
} | ||
|
||
nav li .active span { | ||
background: #fff; | ||
position: absolute; | ||
} | ||
|
||
nav li .active span:after { | ||
top: -6px; | ||
left: -6px; | ||
bottom: -6px; | ||
right: -6px; | ||
} | ||
|
||
nav ul { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
nav ul li { | ||
display: block; | ||
width: 14px; | ||
height: 13px; | ||
margin: 7px; | ||
position: relative; | ||
} | ||
|
||
nav ul li a { | ||
display: block; | ||
position: relative; | ||
z-index: 1; | ||
width: 100%; | ||
height: 100%; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
nav ul li a.active span, | ||
nav ul li:hover a.active span { | ||
height: 12px; | ||
width: 12px; | ||
margin: -6px 0 0 -6px; | ||
border-radius: 100%; | ||
} | ||
|
||
nav ul li a span { | ||
border-radius: 50%; | ||
position: absolute; | ||
z-index: 1; | ||
height: 4px; | ||
width: 4px; | ||
border: 0; | ||
background: #fff; | ||
left: 50%; | ||
top: 50%; | ||
margin: -2px 0 0 -2px; | ||
transition: all 0.1s ease-in-out; | ||
} | ||
|
||
nav ul li:hover a span { | ||
width: 10px; | ||
height: 10px; | ||
margin: -5px 0px 0px -5px; | ||
} | ||
|
||
.pg-horizontal nav { | ||
width: 100vw; | ||
left: 0; | ||
bottom: 20px; | ||
} | ||
.pg-horizontal nav ul li { | ||
float: left; | ||
} |
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,8 @@ | ||
const pageable = new Pageable("main", { | ||
freeScroll: true, | ||
swipeThreshold: 200, | ||
infinite: true, | ||
slideshow: { | ||
interval: 2000, | ||
}, | ||
}); |
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,21 @@ | ||
<!DOCTYPE html> | ||
<html > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Pageable - Slideshow</title> | ||
<link rel="stylesheet" href="//cdn.materialdesignicons.com/3.0.39/css/materialdesignicons.min.css"> | ||
<link rel="stylesheet" href="css/slideshow.css"> | ||
</head> | ||
<body> | ||
<main> | ||
<section data-anchor="page 1">1</section> | ||
<section data-anchor="page 2">2</section> | ||
<section data-anchor="page 3">3</section> | ||
<section data-anchor="page 4">4</section> | ||
<section data-anchor="page 5">5</section> | ||
<section data-anchor="page 6">6</section> | ||
</main> | ||
<script src="https://unpkg.com/pageable@latest/dist/pageable.js"></script> | ||
<script src="js/slideshow.js"></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
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