feat: speed up copy-flash timing by ~25%
All checks were successful
check / check (push) Successful in 20s
All checks were successful
check / check (push) Successful in 20s
Reduce active phase from 100ms to 75ms, fade transition from 300ms to 225ms, and cleanup delay from 350ms to 275ms for snappier feedback. Refs #100
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user