infoscreens/alien-alarm/index.html

88 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2017-12-05 22:10:25 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>c-base alien alarm</title>
<link rel="stylesheet" href="../theme/c-base.css">
<style>
body {
2017-12-06 16:10:15 +01:00
background-color: hsl(0, 98%, 46%);
2017-12-05 22:38:17 +01:00
animation: color 0.6s infinite linear alternate;
2017-12-05 22:10:25 +01:00
}
h1 {
text-align: center;
2017-12-06 16:07:59 +01:00
font-size: 16vmin;
2017-12-05 22:10:25 +01:00
margin-top: 10vmin;
white-space: nowrap;
width: 100vw;
overflow: hidden;
color: black;
text-transform: lowercase;
line-height: 20vmin;
}
img {
position: absolute;
left: 35vw;
top: 50vh;
width: 30vw;
2017-12-05 22:38:17 +01:00
animation: moveleftright 3s infinite linear alternate,
2017-12-05 22:41:49 +01:00
moveupdown 1.6s infinite ease-in-out alternate,
flip 1.6s infinite ease-in-out alternate;
2017-12-05 22:10:25 +01:00
}
2017-12-05 22:38:17 +01:00
@keyframes moveleftright {
2017-12-05 22:10:25 +01:00
from {
left: 10vw;
}
to {
left: 60vw;
}
}
2017-12-05 22:38:17 +01:00
@keyframes moveupdown {
0%, 30% {
top: 50vh;
transform: scaleY(1)
2017-12-05 22:10:25 +01:00
}
2017-12-05 22:38:17 +01:00
40% {
top: 25vh;
transform: scaleY(-1)
}
50%, 100% {
top: 50vh;
transform: scaleY(1)
}
}
@keyframes flip {
0%, 35% {
transform: scaleY(1)
}
40% {
transform: scaleY(-1)
}
45%, 100% {
transform: scaleY(1)
}
}
@keyframes color {
0%, 20% {
2017-12-05 22:10:25 +01:00
background-color: hsl(35, 98%, 46%);
}
2017-12-05 22:38:17 +01:00
80%, 100% {
background-color: hsl(0, 98%, 46%);
}
2017-12-05 22:10:25 +01:00
}
2017-12-05 22:38:17 +01:00
@keyframes size {
2017-12-05 22:10:25 +01:00
from {
font-size: 10vmin;
}
to {
font-size: 16vmin;
}
}
</style>
</head>
<body>
<h1>Alien Alarm</h1>
<img src="alien.svg">
</body>
</html>