-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
93 lines (80 loc) · 1.41 KB
/
style.css
File metadata and controls
93 lines (80 loc) · 1.41 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
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.timer-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
border-radius: 5px;
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
h1 {
font-size: 24px;
}
.controls {
margin-top: 20px;
}
label {
font-size: 16px;
margin-right: 10px;
}
input {
width: 60px;
padding: 5px;
font-size: 16px;
}
button {
font-size: 16px;
padding: 5px 10px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
button:hover {
background-color: #333;
color: #fff;
}
.timer-display {
margin-top: 20px;
font-size: 24px;
font-weight: bold;
animation: fadeIn 0.5s ease-in-out;
}
.timer-display.running {
animation: bounce 0.5s ease-in-out;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.timer-display.stopped {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-5px);
}
20%, 40%, 60%, 80% {
transform: translateX(5px);
}
}