-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (86 loc) · 3.91 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
<html>
<head>
<title>Test</title>
<style>
html, body {
font-family: "Inter", sans-serif;
width: 100%;
height: 100%;
overflow: hidden;
color: #555555;
background: #fafafa;
}
.box{
width:600px;
height:100px;
background:#ebebeb;
display: flex;
flex-direction: row-reverse;
justify-content: center;
align-items: center;
margin:50px;
}
.box2{
width:100px;
height: 600px;
background:#ebebeb;
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
margin: 5px;
}
.box_inside, .box2_inside, .box_inside:hover, .box2_inside:hover{
width: 100px;
height: 100px;
float:left;
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/DeNI4HaQvt/center.png);
background-repeat: no-repeat !important;
background-size: cover !important;
}
/*
assets:
RIGHT ARROW: https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/DFrQ7vCgy2/right.png
LEFT ARROW: https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/4RQPxvmQRX/left.png
DOWN ARROW: https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/rR-t7stGWr/down.png
UP ARROW: https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/YdH9_StfiW/up.png
*/
.box:hover .box_inside{
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/4RQPxvmQRX/left.png);
}
.box .box_inside:hover ~ .box_inside{
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/DFrQ7vCgy2/right.png);
}
.box .box_inside:hover {
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/DeNI4HaQvt/center.png);
}
.box2:hover .box2_inside{
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/YdH9_StfiW/up.png);
}
.box2 .box2_inside:hover ~ .box2_inside{
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/rR-t7stGWr/down.png);
}
.box2 .box2_inside:hover {
background-image: url(https://d1edrlpyc25xu0.cloudfront.net/hat-ppxmocchbbcbhopzk/image/upload/w_320,h_320,c_limit/DeNI4HaQvt/center.png);
}
</style>
</head>
<body>
<div class="box">
<div class="box_inside"></div>
<div class="box_inside"></div>
<div class="box_inside"></div>
<div class="box_inside"></div>
<div class="box_inside"></div>
<div class="box_inside"></div>
</div>
<div class="box2">
<div class="box2_inside"></div>
<div class="box2_inside"></div>
<div class="box2_inside"></div>
<div class="box2_inside"></div>
<div class="box2_inside"></div>
<div class="box2_inside"></div>
</div>
</body>
</html>