-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteddy.html
More file actions
46 lines (42 loc) · 1.19 KB
/
teddy.html
File metadata and controls
46 lines (42 loc) · 1.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="https://ADW-development.github.io/Favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teddy</title>
<link rel="stylesheet" href="main.css">
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #fefefe;
}
#teddy {
width: 200px;
height: auto;
transition: transform 0.2s ease;
cursor: pointer;
user-select: none;
}
.squished {
transform: scaleY(0.6) scaleX(1.2);
}
</style>
</head>
<body>
<img id="teddy" src="https://adw-development.github.io/cdn/extras/teddy-removebg-preview.png" alt="Teddy Bear">
<script>
const teddy = document.getElementById('teddy');
teddy.addEventListener('click', () => {
teddy.classList.add('squished');
setTimeout(() => {
teddy.classList.remove('squished');
}, 200);
});
</script>
</body>
</html>