-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
68 lines (66 loc) · 1.3 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="jquery.min.js"></script>
<script src="static/parallax.js"></script>
<script src="spy.js"></script>
<style>
body{
background-color: #555;
width: 100%;
height: 1024px;
margin: 0;
}
#test{
width: 250px;
height: 250px;
}
#test-inner{
top:0%;
left: -115%;
}
#test-inner3{
top:20%;
left:15%;
}
#test-inner2{
top:0%;
left:-210%;
}
.layer-border{
border:3px solid #A25E5E
}
</style>
</head>
<body>
<div class="button">123456</div>
<div id="test">
<div id="test-inner"></div>
<div id="test-inner2"></div>
<div id="test-inner3"></div>
</div>
<script>
//test
const obj={
eyeSize:250,
element:'#test-inner',
containerEl:'#test',
dopeMove:true
}
const obj2={
eyeSize:100,
element:'#test-inner2',
containerEl:'#test'
}
const obj3={
eyeSize:150,
element:'#test-inner3',
containerEl:'#test'
}
new spy(obj)
new spy(obj2)
new spy(obj3)
</script>
</body>
</html>