GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — FEND_Note/SampleCode/CSS/AnimationPractice.html at master · bailinagit/FEND_Note

Expand file tree

/

AnimationPractice.html

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
151 lines (132 loc) · 3.14 KB
/

AnimationPractice.html

Copy path

File metadata and controls

151 lines (132 loc) · 3.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animation Practice</title>
<style type="text/css">
body {
margin: 30px;
text-align: center;
font-family: monospace;
}
.container {
line-height: 300px;
position: relative;
width: 1px;
top: 50%;
left: 50%;
margin-top: 200px;
font-size: 3rem;
perspective: 2000px;
perspective-origin: 0 150px;
transform-style: preserve-3d;
}
.side {
transition-duration: 3s;
height: 300px;
width: 300px;
border: 5px solid rgba(0, 0, 0, .3);
position: absolute;
left: -150px;
top: 50%;
}
</style>
</head>
<body>
<h1>3D 正方体组合旋转</h1>
<div class="container">
<div class="back side">back</div>
<div class="front side">front</div>
<div class="side right">right</div>
<div class="side left">left</div>
<div class="side bottom">botto </div>
<div class="side top">top </div>
</div>
<style type="text/css">
.top {
animation: placeTop 1s linear both;
transition-property: background-color;
}
.bottom {
animation: placeBottom 1s 1s linear both;
transition-property: background-color;
}
.left {
animation: placeLeft 1s 2s linear both;
transition-property: background-color;
}
.right {
animation: placeRight 1s 3s linear both;
transition-property: background-color;
}
.back {
animation: placeBack 1s 4s linear both;
transition-property: background-color;
}
.front {
animation: placeFront 1s 5s linear both;
transition-property: background-color;
}
.container {
animation: cube 3s 6s linear infinite both;
}
.container:hover .top {
background-color: red;
}
.container:hover .bottom {
background-color: green;
}
.container:hover .left {
background-color: blue;
}
.container:hover .right {
background-color: yellow;
}
.container:hover .back {
background-color: gray;
}
.container:hover .front {
background-color: orange;
}
@keyframes placeTop {
100% {
transform: translateY(-150px) rotateX(90deg);
}
}
@keyframes placeBottom {
100% {
transform: translateY(150px) rotateX(90deg);
}
}
@keyframes placeLeft {
100% {
transform: translateX(-150px) rotateY(90deg);
}
}
@keyframes placeRight {
100% {
transform: translateX(150px) rotateY(90deg);
}
}
@keyframes placeBack {
100% {
transform: translateZ(-150px) rotateY(180deg);
}
}
@keyframes placeFront {
100% {
transform: translateZ(150px);
}
}
@-webkit-keyframes cube {
0% {
perspective: 2000px;
}
100% {
perspective: 0px;
transform: rotate3d(0.5, 0.5, 0.5, 360deg);
}
}
</style>
</body>
</html>
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.