Skip to content

Commit 5ecefb4

Browse files
committed
feat: add bouncing dvd logo
1 parent caf6381 commit 5ecefb4

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Bouncing DVD Logo</title>
7+
<style>
8+
body {
9+
margin: 0;
10+
padding: 0;
11+
overflow: hidden;
12+
background-color: black;
13+
}
14+
#dvd-logo {
15+
position: absolute;
16+
width: 187.09px;
17+
height: 82.68px;
18+
background-color: transparent;
19+
background-image: url("dvd-logo.svg"); /* Replace with your logo image */
20+
background-size: cover;
21+
background-repeat: no-repeat;
22+
animation: moveX 4s linear 0s infinite alternate,
23+
moveY 6.8s linear 0s infinite alternate;
24+
}
25+
@keyframes moveX {
26+
from {
27+
left: 0;
28+
}
29+
to {
30+
left: calc(100vw - 187.09px);
31+
} /* Adjust the distance */
32+
}
33+
@keyframes moveY {
34+
from {
35+
top: 0;
36+
}
37+
to {
38+
top: calc(100vh - 82.68px);
39+
} /* Adjust the distance */
40+
}
41+
</style>
42+
</head>
43+
<body>
44+
<div id="dvd-logo"></div>
45+
</body>
46+
</html>

playground/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ For Stable Diffusion, you need to add your `STABILITY_AI_KEY`. You can find it i
113113

114114
- [classifying files](23-classifying-files.py) in different folders according to their formats.
115115
- creating a [basic website](24-website/index.html).
116+
- recreating the [bouncing DVD logo screen](33-bouncing-logo/index.html).
116117
- debugging [code](25-debugging-code.py).
117118

118119
## ChatGPT for Non-Developers & Developers

0 commit comments

Comments
 (0)