From a657adf9b1e6078f0aa8b0020d2dd7184da05d85 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Mon, 27 Jul 2020 03:06:08 +0000 Subject: [PATCH] Smoothly transition between pages --- Pages/V-Tweaks/index.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Pages/V-Tweaks/index.css b/Pages/V-Tweaks/index.css index ea20d30..8fd02f6 100644 --- a/Pages/V-Tweaks/index.css +++ b/Pages/V-Tweaks/index.css @@ -18,7 +18,9 @@ body { nav { margin: auto; margin-top: 1rem; - width: fit-content; + width: intrinsic; /* Safari/WebKit uses a non-standard name */ + width: -moz-max-content; /* Firefox/Gecko */ + width: -webkit-max-content; /* Chrome */ display: flex; flex-direction: row; justify-content: space-evenly; @@ -57,24 +59,24 @@ nav .item:hover, nav .item[active] { animation: Rainbow 20s ease-in-out infinite; } -nav .item:hover:last-of-type, nav .item[active]:last-of-type { +nav .item:last-of-type { border-top-right-radius: 16px; border-bottom-right-radius: 16px; } -nav .item:hover:first-of-type, nav .item[active]:first-of-type { +nav .item:first-of-type { border-top-left-radius: 16px; border-bottom-left-radius: 16px; } section { - display: none; + max-height: 0; opacity: 0; transition: opacity ease-in-out 150ms; } .shown{ - display: block; + max-height: auto; opacity: 1; transition: ease-in-out 150ms; } @@ -89,4 +91,4 @@ section { .modal-content { max-width: 1024px; -} \ No newline at end of file +}