Skip to content

Commit c4b8538

Browse files
committed
feat(CSS): go from 2s to 1s on transform
1 parent 3cdf089 commit c4b8538

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ body {
4141
padding: 10px;
4242
background-color: rgb(27 22 22 / 39%);
4343
transform: translateX(0px);
44-
transition: transform 2s;
44+
transition: transform 1s;
4545
}
4646

4747
.computation-history-parent {
@@ -94,7 +94,7 @@ body {
9494

9595
.sliding-part.slide {
9696
transform: translateX(200px);
97-
transition: transform 2s;
97+
transition: transform 1s;
9898

9999

100100
}

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const clearHistoryBtn = document.querySelector(".clear-history-btn");
1010

1111
console.log(clearHistoryBtn);
1212

13+
clearHistoryBtn.addEventListener("click", () => { historyElement.innerHTML = ""})
14+
1315

1416

1517
const operatorRegex = /[\/*\-+]/;

0 commit comments

Comments
 (0)