-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (50 loc) · 1.55 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
<!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>Document</title>
<style>
[class^="box"] {
width: 100px;
height: 100px;
border: 1px solid white;
box-sizing: border-box;
background-color: green;
position: absolute;
text-align: center;
font-size: 80px;
color: lime;
}
main {
height: 400px;
width: 400px;
border: 10px solid black;
position: relative;
background-color: brown;
}
</style>
</head>
<body>
<main>
<div class="box1" data-idx="0">1</div>
<div class="box2" data-idx="1">2</div>
<div class="box3" data-idx="2">3</div>
<div class="box4" data-idx="3">4</div>
<div class="box5" data-idx="4">5</div>
<div class="box6" data-idx="5">6</div>
<div class="box7" data-idx="6">7</div>
<div class="box8" data-idx="7">8</div>
<div class="box9" data-idx="8">9</div>
<div class="box10" data-idx="9">10</div>
<div class="box11" data-idx="10">11</div>
<div class="box12" data-idx="11">12</div>
<div class="box13" data-idx="12">13</div>
<div class="box14" data-idx="13">14</div>
<div class="box15" data-idx="14">15</div>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.2/TweenMax.min.js"></script>
<script src="index.js" defer></script>
</body>
</html>