Animate dice dropdown

This commit is contained in:
SillyLossy
2023-03-19 01:09:45 +02:00
parent 95ca39d8e0
commit 9886ebb3a1
2 changed files with 3 additions and 3 deletions

View File

@ -54,10 +54,10 @@ function addDiceRollButton() {
if (target.is(button) && !dropdown.is(":visible")) { if (target.is(button) && !dropdown.is(":visible")) {
e.preventDefault(); e.preventDefault();
dropdown.show(); dropdown.show(200);
popper.update(); popper.update();
} else { } else {
dropdown.hide(); dropdown.hide(200);
} }
}); });
} }

View File

@ -32,7 +32,7 @@
display: block; display: block;
padding: 0.75rem 1.25rem; padding: 0.75rem 1.25rem;
margin-bottom: -1px; margin-bottom: -1px;
background-color: rgba(0,0,0,0.3); background-color: rgba(0,0,0,0.5);
border: 1px solid rgba(0,0,0,0.7); border: 1px solid rgba(0,0,0,0.7);
box-sizing: border-box; box-sizing: border-box;
user-select: none; user-select: none;