Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix transition with js
  • Loading branch information
Debatty-Tom committed Oct 9, 2025
commit 9cc83aff2088c55092370a21ad3e5ed34c578b7d
3 changes: 2 additions & 1 deletion dist/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7469,7 +7469,8 @@ if (cookieConsentNotice) {
cookieConsentConfigScript.removeAttribute('data-config');
cookieConsentNotice.removeAttribute('data-text');
setTimeout(function () {
return cookieConsentNotice.classList.remove('cookies--closing');
cookieConsentNotice.classList.remove('cookies--closing');
cookieConsentNotice.style.transitionDuration = "200ms";
}, 110);
});
}
Expand Down
2 changes: 1 addition & 1 deletion dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
max-width: 100%;
overflow: auto;
z-index: 9999;
transition: transform 200ms ease-out, opacity 200ms ease-out;
transition: transform 0ms ease-out, opacity 0ms ease-out;
}
#cookies-policy.cookies--closing {
opacity: 0;
Expand Down
5 changes: 4 additions & 1 deletion resources/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ if (cookieConsentNotice) {
cookieConsentConfigScript.removeAttribute('data-config');
cookieConsentNotice.removeAttribute('data-text');

setTimeout( () => cookieConsentNotice.classList.remove('cookies--closing'), 110);
setTimeout( () => {
cookieConsentNotice.classList.remove('cookies--closing');
cookieConsentNotice.style.transitionDuration = "200ms";
}, 110);
});
}
4 changes: 2 additions & 2 deletions resources/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
max-width: 100%;
overflow: auto;
z-index: 9999;
transition: transform 200ms ease-out,
opacity 200ms ease-out;
transition: transform 0ms ease-out,
opacity 0ms ease-out;

&--closing {
opacity: 0;
Expand Down