v2.exhq.dev/src/App.css

61 lines
1 KiB
CSS
Raw Normal View History

2024-06-22 23:41:44 +02:00
:root {
background-color: #121212;
font-family: 'Courier New', Courier, monospace;
overflow-x: hidden;
}
.header {
margin-top: 2em;
display: flex;
align-items: center;
justify-content: center;
}
.header h1 {
font-size: 2.5em;
color:blanchedalmond;
display: inline-table;
}
.header h1:not(:active){
animation: slide-right 1.5s;
}
.header h1:hover {
animation: shake 10ms infinite;
}
.header img {
border-radius: 25%;
margin-right: 1em;
vertical-align: middle;
max-width: 10em;
animation: slide-left 1.5s ;
}
@keyframes slide-left {
from {
transform: translateX(-10000em);
}
to {
transform: translateX(0);
}
}
@keyframes slide-right {
from {
transform: translateX(10000em);
}
to {
transform: translateX(0);
}
}
@keyframes shake {
0% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(5px, 5px) rotate(5deg); }
50% { transform: translate(0, 0) rotate(0eg); }
75% { transform: translate(-5px, 5px) rotate(-5deg); }
100% { transform: translate(0, 0) rotate(0deg); }
}