Add animation for title

main
trivernis 3 months ago
parent 1b8d53df86
commit 25997d3576
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 7E6D18B61C8D2F4B

@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import { page } from "$app/stores"; import { page } from "$app/stores";
import "$lib/styles/neon-start.scss";
let title = "Trivernis"; let title = "Trivernis";
let secondaryTitle: string | undefined = undefined; let secondaryTitle: string | undefined = undefined;
@ -50,6 +51,7 @@
); );
text-shadow: 0px 0px 0.5em var(--color-primary); text-shadow: 0px 0px 0.5em var(--color-primary);
user-select: none; user-select: none;
animation: neon-start 3s;
@include portrait { @include portrait {
font-size: 1.8em; font-size: 1.8em;

@ -0,0 +1,50 @@
@keyframes neon-start {
0% {
opacity: 0.1;
}
9% {
opacity: 0.1;
}
10% {
opacity: 0.7;
}
12% {
opacity: 0.2;
}
24% {
opacity: 0.2;
}
25% {
opacity: 0.75;
}
27% {
opacity: 0.2;
}
32% {
opacity: 0.2;
}
33% {
opacity: 0.75;
}
35% {
opacity: 0.2;
}
40% {
opacity: 0.75;
}
100% {
opacity: 1;
}
}
Loading…
Cancel
Save