-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
73 lines (65 loc) · 1.76 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test</title>
<script type="text/javascript" src="./lib/preshoot.js"></script>
<style>
.cube1 {
position: absolute;
left: 1rem;
top: 1rem;
width: 50px;
height: 50px;
background-color: aquamarine;
}
.cube2 {
position: absolute;
left: 1rem;
bottom: 1rem;
width: 50px;
height: 50px;
background-color: rebeccapurple;
}
.cube3 {
position: absolute;
right: 1rem;
bottom: 1rem;
width: 50px;
height: 50px;
background-color: yellowgreen;
}
.cube5 {
position: absolute;
right: 1rem;
top: 1rem;
width: 50px;
height: 50px;
background-color: teal;
}
.cube4 {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 50px;
height: 50px;
background-color: black;
}
.preshoot {
border: 5px solid red;
}
</style>
<script>
window.preshootConfig.reset = false;
</script>
</head>
<body>
<div class="cube1" preshoot-area></div>
<div class="cube2" preshoot-area></div>
<div class="cube3" preshoot-area></div>
<div class="cube4" preshoot-area></div>
<div class="cube5" preshoot-area></div>
</body>
</html>