fix: purchase confirmation overlay animation

This commit is contained in:
s3lph 2023-05-17 01:55:40 +02:00
parent 2d7d93c2a7
commit 01deb63098
5 changed files with 26 additions and 8 deletions

View file

@ -1,5 +1,18 @@
# Matemat Changelog # Matemat Changelog
<!-- BEGIN RELEASE v0.3.5 -->
## Version 0.3.5
Fix purchase confirmation overlay animation
### Changes
<!-- BEGIN CHANGES 0.3.5-->
- Fix purchase confirmation overlay animation
<!-- END CHANGES 0.3.5 -->
<!-- END RELEASE v0.3.5 -->
<!-- BEGIN RELEASE v0.3.4 --> <!-- BEGIN RELEASE v0.3.4 -->
## Version 0.3.4 ## Version 0.3.4

View file

@ -1,2 +1,2 @@
__version__ = '0.3.4' __version__ = '0.3.5'

View file

@ -1,5 +1,5 @@
Package: matemat Package: matemat
Version: 0.3.4 Version: 0.3.5
Maintainer: s3lph <1375407-s3lph@users.noreply.gitlab.com> Maintainer: s3lph <1375407-s3lph@users.noreply.gitlab.com>
Section: web Section: web
Priority: optional Priority: optional

View file

@ -311,11 +311,12 @@ aside#overlay {
padding: 5%; padding: 5%;
font-family: sans-serif; font-family: sans-serif;
display: none; display: none;
transition: opacity 700ms;
opacity: 0;
} }
aside#overlay.fade { aside#overlay.fade {
opacity: 0; opacity: 100%;
transition: opacity 0.5s;
} }
aside#overlay > h2 { aside#overlay > h2 {

View file

@ -6,9 +6,13 @@ setTimeout(() => {
setTimeout(() => { setTimeout(() => {
overlay.classList.add('fade'); overlay.classList.add('fade');
setTimeout(() => { setTimeout(() => {
overlay.style.display = 'none'; setTimeout(() => {
overlay.classList.remove('fade'); overlay.classList.remove('fade');
}, 500); setTimeout(() => {
}, 500); overlay.style.display = 'none';
}, 700);
}, 700);
}, 700);
}, 10);
} }
}, 0); }, 0);