Compare commits

..

2 Commits

Author SHA1 Message Date
d7f1e78956 Merge pull request 'Update orange bar to animate smoothly' (#1) from jank1619/simonis.lol:main into main
All checks were successful
build / build (push) Successful in 13s
Reviewed-on: #1
2025-02-17 11:25:11 +00:00
3588e86e27 Update src/index.html 2025-02-17 11:23:15 +00:00

View File

@ -7,6 +7,7 @@
<style> <style>
html, body { html, body {
height: 100%; height: 100%;
overflow: hidden;
} }
body { body {
background-color: #fff; background-color: #fff;
@ -17,31 +18,68 @@
line-height: 1.5; line-height: 1.5;
margin: 0; margin: 0;
display: flex; display: flex;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: center;
height: 100vh;
position: relative;
padding-left: 10vw;
} }
main { main {
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
position: absolute;
animation: moveText 5s infinite linear alternate;
} }
h1 { h1 {
font-size: 2.5rem; font-size: 2.5rem;
line-height: 1.1; line-height: 1.1;
margin: 0; margin: 0;
position: relative;
display: inline-block;
animation: shakeText 0.2s infinite alternate ease-in-out;
} }
h1::after { .crazy-underline {
content: ""; position: absolute;
background-color: #ffe800; width: 100%;
background: repeating-linear-gradient(45deg, #ffe800, #ffe800 0.5rem, #222 0.5rem, #222 1.0rem);
display: block;
height: 0.5rem; height: 0.5rem;
margin-top: 1rem; background: repeating-linear-gradient(45deg, #ffe800, #ffe800 0.5rem, #222 0.5rem, #222 1.0rem);
animation: moveUnderline 3s infinite linear, spinUnderline 1s infinite linear;
}
@keyframes moveText {
0% { top: 10%; left: 5%; }
25% { top: 80%; left: 15%; }
50% { top: 30%; left: 50%; }
75% { top: 90%; left: 30%; }
100% { top: 10%; left: 5%; }
}
@keyframes shakeText {
0% { transform: translateX(0) rotate(0deg); }
25% { transform: translateX(-3px) rotate(-2deg); }
50% { transform: translateX(3px) rotate(2deg); }
75% { transform: translateX(-2px) rotate(-1deg); }
100% { transform: translateX(2px) rotate(1deg); }
}
@keyframes moveUnderline {
0% { top: 0%; left: 5%; }
25% { top: 80%; left: 10%; }
50% { top: 30%; left: 45%; }
75% { top: 90%; left: 25%; }
100% { top: 10%; left: 5%; }
}
@keyframes spinUnderline {
0% { transform: rotate(0deg); }
100% { transform: rotate(720deg); }
} }
</style> </style>
</head> </head>
<body> <body>
<main> <main>
<h1>Our website is under construction.</h1> <h1>Our website is under construction.</h1>
<div class="crazy-underline"></div>
</main> </main>
</body> </body>
</html> </html>