diff --git a/src/lib/components/Accordion.svelte b/src/lib/components/Accordion.svelte index 57d076a7..c92e88ad 100644 --- a/src/lib/components/Accordion.svelte +++ b/src/lib/components/Accordion.svelte @@ -1,6 +1,5 @@
- + -
+
@@ -72,28 +34,14 @@ } .content { - max-height: 0; + display: none; overflow: hidden; color: var(--foreground-color); - transition: max-height 0.6s cubic-bezier(0, 1, 0, 1); } .tab input:checked ~ .content { - max-height: 10000px; - transition: max-height 0.6s ease-in-out; - animation: allow-overflow 0.6s forwards; - } - - @keyframes allow-overflow { - 0% { - overflow: hidden; - } - 99% { - overflow: hidden; - } - 100% { - overflow: visible; - } + display: block; + overflow: visible; } label { @@ -112,7 +60,6 @@ .chevron { position: absolute; right: 2rem; - transition: transform 0.6s; color: var(--foreground-color); & > svg { color: var(--foreground-color);