Time-Service/page/css/clock.css

85 lines
1.1 KiB
CSS
Raw Permalink Normal View History

2019-01-10 21:09:13 +00:00
body,
html {
2017-08-23 17:24:50 +00:00
height: 100vh;
width: 100vw;
2017-10-05 18:39:01 +00:00
user-select: none;
2017-08-21 22:13:54 +00:00
}
.clock {
2019-01-10 21:09:13 +00:00
width: 800px;
margin: 0 auto;
padding: 30px;
color: #fff;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
overflow: hidden;
z-index: 10;
opacity: 0;
animation-name: show;
animation-duration: 3s;
animation-fill-mode: forwards;
pointer-events: none;
2017-08-21 22:13:54 +00:00
}
#date {
2019-01-22 12:13:31 +00:00
font-family: Arial, Helvetica, sans-serif;
2019-01-10 21:09:13 +00:00
font-size: 36px;
text-align: center;
text-shadow: 0 0 5px #00c6ff;
2017-08-23 17:24:50 +00:00
2017-08-21 22:13:54 +00:00
}
ul {
2019-01-10 21:09:13 +00:00
width: 800px;
margin: 0 auto;
padding: 0px;
list-style: none;
text-align: center;
2017-08-21 22:13:54 +00:00
}
ul li {
2019-01-10 21:09:13 +00:00
display: inline;
font-size: 10em;
text-align: center;
2019-01-22 12:13:31 +00:00
font-family: Arial, Helvetica, sans-serif;
2019-01-10 21:09:13 +00:00
text-shadow: 0 0 5px #00c6ff;
2017-08-21 22:13:54 +00:00
}
.point {
2019-01-10 21:09:13 +00:00
position: relative;
padding-left: 10px;
padding-right: 10px;
animation: flash 1s ease infinite;
top: -11px;
opacity: 0;
2017-08-21 22:13:54 +00:00
}
@keyframes flash {
0% {
opacity: 0;
text-shadow: none;
}
2019-01-10 21:09:13 +00:00
50% {
opacity: 1.0;
text-shadow: 0 0 20px #00c6ff;
}
2019-01-10 21:09:13 +00:00
100% {
opacity: 0;
text-shadow: none;
}
2017-08-23 17:24:50 +00:00
}
@keyframes show {
0% {
opacity: 0;
}
2019-01-10 21:09:13 +00:00
2017-08-23 17:24:50 +00:00
100% {
opacity: 1;
}
2017-08-21 22:13:54 +00:00
}