forked from RoyalKnights/PhotoShow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFullPhoto.css
More file actions
95 lines (79 loc) · 1.1 KB
/
FullPhoto.css
File metadata and controls
95 lines (79 loc) · 1.1 KB
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
* {
margin: 0;
padding: 0;
}
.box {
width: 100%;
height: 100%;
}
.box img {
width: 100%;
height: 100%;
position: fixed;
transition: all 1s linear;
}
.list {
position: absolute;
z-index: 999;
width: 1000px;
height: auto;
bottom: 20px;
left: 0;
right: 0;
margin: auto;
}
.list li {
list-style: none;
width: 130px;
height: 130px;
border: 5px solid lightskyblue;
float: left;
margin-left: 60px;
overflow: hidden;
border-radius: 50%;
}
.list li img {
width: 200%;
}
.box img:nth-child(1) {
opacity: 0;
left: -100%;
}
.box img:nth-child(1):target {
z-index: 1;
opacity: 1;
left: 0;
}
.box img:nth-child(2) {
top: -100%;
}
.box img:nth-child(2):target {
z-index: 1;
transform: rotate(360deg);
top: 0;
}
.box img:nth-child(3) {
opacity: 0;
right: -100%;
}
.box img:nth-child(3):target {
z-index: 1;
opacity: 1;
right: 0;
}
.box img:nth-child(4) {
bottom: -100%;
}
.box img:nth-child(4):target {
z-index: 1;
transform: rotate(360deg);
bottom: 0;
}
.box img:nth-child(5) {
opacity: 0;
}
.box img:nth-child(5):target {
z-index: 1;
opacity: 1;
transform: rotate(360deg);
}