Merge pull request 'feat: speed up copy-flash timing by ~25% — follow-up to #113' (#121) from fix/issue-100-faster-copy-flash into main
All checks were successful
check / check (push) Successful in 11s

Reviewed-on: #121
This commit was merged in pull request #121.
This commit is contained in:
2026-03-01 01:21:24 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -29,6 +29,6 @@ body {
.copy-flash-fade { .copy-flash-fade {
transition: transition:
background-color 300ms ease-out, background-color 225ms ease-out,
color 300ms ease-out; color 225ms ease-out;
} }

View File

@@ -267,8 +267,8 @@ function flashCopyFeedback(el) {
el.classList.add("copy-flash-fade"); el.classList.add("copy-flash-fade");
setTimeout(() => { setTimeout(() => {
el.classList.remove("copy-flash-fade"); el.classList.remove("copy-flash-fade");
}, 350); }, 275);
}, 100); }, 75);
} }
module.exports = { module.exports = {