diff --git a/src/pages/menu.svelte b/src/pages/menu.svelte index 25117cf..2eb5a36 100644 --- a/src/pages/menu.svelte +++ b/src/pages/menu.svelte @@ -66,9 +66,11 @@

Paused

Angels are waiting - don't spend too much time here

{#each buttons as button, i} - +
+ +
{/each} @@ -82,8 +84,38 @@ height: 100vh; background: rgba(0,0,0,0.8); color: white; + animation: opacity .3s; + } + @keyframes opacity { + from { opacity: 0; } + to { opacity: 1; } } .options { text-align: center; } + .options h2 { + --movein-delay: .1s; + } + .options p { + --movein-delay: .20s; + } + .button { + width: 100%; + } + @keyframes moveIn { + from { + transform: translateY(75px); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + } + .options > * { + animation-fill-mode: both; + /* animation: moveIn .2s; */ + animation-timing-function: ease-in; + animation-delay: var(--movein-delay); + } \ No newline at end of file