pop up moves

This commit is contained in:
counterweight 2025-02-27 17:36:22 +01:00
parent ab9d502945
commit 0b3fe23cd3
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 17 additions and 1 deletions

View file

@ -56,7 +56,13 @@
justify-content: space-evenly;
align-items: center;
left: 50%;
transform: translateX(-50%);
transform: translate(-50%, -200%);
transition: transform 1s ease-in-out;
}
.top-notification-good.revealed {
transform: translate(-50%, 0%);
}
.top-notification-good > * {
margin: 0 20px;

View file

@ -43,6 +43,8 @@ const bigNotesAcceptedCheckbox = document.getElementById(
const publishOfferButton = document.getElementById('button-submit-offer');
const offerCreatedPopup = document.getElementById('offer-created-confirmation');
function toggleCreateOfferControls() {
createOfferControls.style.display =
createOfferControls.style.display === 'block' ? 'none' : 'block';
@ -154,6 +156,14 @@ async function publishOffer() {
},
body: JSON.stringify({ offerDetails }),
});
offerCreatedPopup.classList.add('revealed');
setTimeout(() => {
offerCreatedPopup.classList.remove('revealed');
}, 3000);
setTimeout(() => {
offerCreatedPopup.classList.remove('revealed');
}, 3000);
}
buttonStartCreateOffer.addEventListener('click', () => {