立体相册

  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
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>立体相册</title>
    <style type="text/css">
        * {
            margin: 0px;
            padding: 0px;
        }
        html,
        body {
            height: 100%;
            width: 100%;
            background-color: silver;
        }
        .my-container {
            width: 100%;
            height: 200px;
            margin: 0px auto;
            margin-top: 200px;
            /*border-radius: 20px;*/
            /*background-color: firebrick;*/
        }
        .my-container .photo {
            /*border-radius: 20px;*/
            height: 100%;
            width: 100%;
            perspective: 1200px;
            perspective-origin: 613px -800px;
            animation: shijiao 3s linear infinite alternate 4s;
        }
        @keyframes shijiao {
            from {
                perspective: 1200px;
                perspective-origin: 613px -800px;
            }
            to {
                perspective: 1200px;
                perspective-origin: 613px 300px;
            }
        }
        .my-container .photo .container {
            height: 100%;
            width: 100px;
            transform-style: preserve-3d;
            position: relative;
            margin: 0px auto;
            /*border-radius: 20px;*/
            animation: xuanzhuan 5s linear 4s infinite;
        }
        @keyframes xuanzhuan {
            from {
                transform: rotateY(0deg);

            }
            to {
                transform: rotateY(-360deg);

            }
        }
        .my-container .photo .container .img {
            height: 200px;
            width: 100px;
            /*background-color: darkgoldenrod;*/
            position: absolute;
            border-radius: 20px;
            background-color: transparent;
            /*border: 3px solid white;*/
            box-shadow: 0px 0px 10px rgba(0, 0, 0, .3);
        }
        img {
            height: 180px;
            width: 90px;
            display: block;
            margin: 10px 5px;
        }
        .img1 {
            /*background-color: red;*/
            transform: translateZ(0px);
            animation: zhuan1 4s linear forwards;
        }
        @keyframes zhuan1 {
            14.28% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            28.56% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
            42.84% {
                transform: translateX(-212.1px) translateZ(-212.1px) rotateY(-135deg);
            }
            57.12% {
                transform: translateX(0px) translateZ(-300px) rotateY(-180deg);
            }
            71.40% {
                transform: translateX(212.1px) translateZ(-212.1px) rotateY(-225deg);
            }
            85.68% {
                transform: translateX(300px) translateZ(0px) rotateY(-270deg);
            }
            100% {
                transform: translateX(212.1px) translateZ(212.1px) rotateY(-315deg);
            }
        }
        .img2 {
            /*background-color: black;*/
            transform: translateZ(-10px);
            animation: zhuan2 3.5s linear .5s forwards;
        }
        @keyframes zhuan2 {
            16.6% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            33.2% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
            49.8% {
                transform: translateX(-212.1px) translateZ(-212.1px) rotateY(-135deg);
            }
            66.4% {
                transform: translateX(0px) translateZ(-300px) rotateY(-180deg);
            }
            83% {
                transform: translateX(212.1px) translateZ(-212.1px) rotateY(-225deg);
            }
            100% {
                transform: translateX(300px) translateZ(0px) rotateY(-270deg);
            }
        }
        .img3 {
            /*background-color: khaki;*/
            transform: translateZ(-20px);
            animation: zhuan3 3s linear 1s forwards;
        }
        @keyframes zhuan3 {
            20% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            40% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
            60% {
                transform: translateX(-212.1px) translateZ(-212.1px) rotateY(-135deg);
            }
            80% {
                transform: translateX(0px) translateZ(-300px) rotateY(-180deg);
            }
            100% {
                transform: translateX(212.1px) translateZ(-212.1px) rotateY(-225deg);
            }
        }
        .img4 {
            /*background-color: violet;*/
            transform: translateZ(-30px);
            animation: zhuan4 2.5s linear 1.5s forwards;
        }
        @keyframes zhuan4 {
            25% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            50% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
            75% {
                transform: translateX(-212.1px) translateZ(-212.1px) rotateY(-135deg);
            }
            100% {
                transform: translateX(0px) translateZ(-300px) rotateY(-180deg);
            }
        }
        .img5 {
            /*background-color: aqua;*/
            transform: translateZ(-40px);
            animation: zhuan5 2s linear 2s forwards;
        }
        @keyframes zhuan5 {
            33.3% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            66.6% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
            100% {
                transform: translateX(-212.1px) translateZ(-212.1px) rotateY(-135deg);
            }
        }
        .img6 {
            /*background-color: saddlebrown;*/
            transform: translateZ(-50px);
            animation: zhuan6 1.5s linear 2.5s forwards;
        }
        @keyframes zhuan6 {
            50% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
            100% {
                transform: translateX(-300px) translateZ(0px) rotateY(-90deg);
            }
        }
        .img7 {
            /*background-color: darkblue;*/
            transform: translateZ(-60px);
            animation: zhuan7 1s linear 3s forwards;
        }
        @keyframes zhuan7 {
            100% {
                transform: translateX(-212.1px) translateZ(212.1px) rotateY(-45deg);
            }
        }
        .img8 {
            /*background-color: hotpink;*/
            transform: translateZ(-70px);
            animation: zhuan8 .5s linear 3.5s forwards;
        }
        @keyframes zhuan8 {
            100% {
                transform: translateZ(300px);
            }
        }
    </style>
</head>
<body>
<div class="my-container">
    <div class="photo">
        <div class="container">
            <div class="img img1">
                <img src="https://img.imgdb.cn/item/604b887f5aedab222cebfe8e.jpg"/>
            </div>
            <div class="img img2">
                <img src="https://img.imgdb.cn/item/604b887f5aedab222cebfe88.jpg"/>
            </div>
            <div class="img img3">
                <img src="https://img.imgdb.cn/item/604b88715aedab222cebf619.jpg"/>
            </div>
            <div class="img img4">
                <img src="https://img.imgdb.cn/item/604b88715aedab222cebf613.jpg"/>
            </div>
            <div class="img img5">
                <img src="https://img.imgdb.cn/item/604b88715aedab222cebf60b.jpg"/>
            </div>
            <div class="img img6">
                <img src="https://img.imgdb.cn/item/604b88715aedab222cebf608.jpg"/>
            </div>
            <div class="img img7">
                <img src="https://img.imgdb.cn/item/604b88715aedab222cebf604.jpg"/>
            </div>
            <div class="img img8">
                <img src="https://img.imgdb.cn/item/604b88595aedab222cebe8ac.jpg"/>
            </div>
            <div class="img img9">
                <img src="https://img.imgdb.cn/item/604b88595aedab222cebe8a8.jpg"/>
            </div>
        </div>
    </div>
</div>
</body>
</html>
updatedupdated2021-04-052021-04-05
Load Comments?