-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·139 lines (120 loc) · 2.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background-color: #1a1a1a;
}
body {
position: relative;
}
.triangle-one {
position: fixed;
z-index: 10;
top: 50px;
left: 50px;
width: 0;
height: 0;
border-top: 25px solid transparent;
border-bottom: 25px solid transparent;
border-right:25px solid #6800eb;
transform: rotate(45deg);
z-index: 1;
}
.triangle-two {
position: fixed;
z-index: 10;
top: 50px;
left: 100px;
width: 0;
height: 0;
border-top: 25px solid transparent;
border-bottom: 25px solid transparent;
border-right:25px solid black;
transform: rotate(45deg);
z-index: 1;
}
span {
z-index: 10;
position:absolute;
display: inline-block;
}
.triangle-one span {
transform: rotate(-45deg);
}
.triangle-two span {
transform: rotate(90deg);
}
.triangle-one span:first-child {
width: 20px;
height: 2px;
top: -7px;
left: 4px;
background-color: black;
}
.triangle-one span:nth-child(2n) {
width: 14px;
height: 2px;
top: -2px;
left: 8px;
background-color: black;
}
.triangle-one span:nth-child(3n) {
width: 10px;
height: 2px;
top: 2px;
left: 12px;
background-color: black;
}
.triangle-two span:first-child {
width: 10px;
height: 2px;
top: -1px;
left: 4px;
background-color: #6800eb;
}
.triangle-two span:nth-child(2n) {
width: 14px;
height: 2px;
top: -1px;
left: 7px;
background-color: #6800eb;
}
.triangle-two span:nth-child(3n) {
width: 20px;
height: 2px;
top: -1px;
left: 9px;
background-color: #6800eb;
}
</style>
<link src="_/components/js/scrollspy.js"></script>
</head>
<body data-spy="scroll" data-target=".navbar-example">
<div class="triangle-one">
<span></span>
<span></span>
<span></span>
</div>
<div class="triangle-two">
<span></span>
<span></span>
<span></span>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- <script src="_/components/js/waypoints.js"></script>
<script src="_/components/js/waypoints.sticky.js"></script>
<script src="_/components/js/jquery.scrollme.js"></script> -->
<script src="_/components/js/scrollspy.js"></script>
<script>
$('body').scrollspy({ target: '.navbar-example' })
</script>
</body>
</html>