invites: add details expand transition

why not.
This commit is contained in:
Harvey Tindall
2025-11-25 20:49:24 +00:00
parent 3178ca7572
commit 909614c3e7
3 changed files with 65 additions and 17 deletions
+2
View File
@@ -553,6 +553,7 @@ class groupButton {
// On close, quickly set maxHeight back to ~scrollHeight, then animate to 0.
if (this._check.checked) {
this._icon.classList.add("rotated");
this._icon.classList.remove("not-rotated");
// Hide the scrollbar while we animate
this._parentSidebar.style.overflowY = "hidden";
this._dropdown.classList.remove("unfocused");
@@ -566,6 +567,7 @@ class groupButton {
this._dropdown.style.maxHeight = (1.2*this._dropdown.scrollHeight)+"px";
this._dropdown.style.opacity = "100%";
} else {
this._icon.classList.add("not-rotated");
this._icon.classList.remove("rotated");
const mainTransitionEnd = () => {
this._dropdown.removeEventListener("transitionend", mainTransitionEnd);