-
Notifications
You must be signed in to change notification settings - Fork 0
/
clock_css.css
86 lines (74 loc) · 1.53 KB
/
clock_css.css
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
body {
background-color: black;
color: white;
font-family: Arial, sans-serif;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
height: 100vh;
overflow: hidden;
}
.date {
font-size: 42px;
margin-bottom: 10px;
white-space: nowrap;
}
.time {
font-size: 96px;
font-weight: bold;
margin-bottom: 10px;
}
.countdown {
font-size: 42px;
white-space: nowrap;
}
.button-container {
align-self: center;
}
.fullscreen-button {
display: inline-block;
width: auto;
background-color: black;
color: white;
padding: 10px 20px;
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 5px;
font-size: 16px;
margin: 50px 0;
}
.fullscreen-button.hide {
opacity: 0;
transition: opacity 0.3s ease;
}
.fullscreen-button:hover {
opacity: 1;
}
* {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.particle {
position: absolute;
width: 10px;
height: 10px;
background-color: #fff;
border-radius: 50%;
z-index: 1000;
pointer-events: none;
animation-name: shooting-star;
animation-duration: 1s;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
}
@keyframes shooting-star {
from {
transform: translate(-100%, -100%);
}
to {
transform: translate(200%, 200%);
opacity: 0;
}
}