Skip to content

Commit

Permalink
Add shake animation to empty Submit and Copy btns /
Browse files Browse the repository at this point in the history
Fix empty EditList to Output bug
  • Loading branch information
Ali-Sdg90 committed Jan 17, 2024
1 parent 201fc3a commit 69e994a
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 16 deletions.
20 changes: 15 additions & 5 deletions JS/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion JS/memberActionBtns.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/memberActionBtns.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions JS/output.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/output.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Style/_animation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-3px);
}
50% {
transform: translateX(3px);
}
75% {
transform: translateX(-3px);
}
100% {
transform: translateX(0);
}
}
4 changes: 4 additions & 0 deletions Style/_base-sections.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@
color: rgb(237, 235, 232);
cursor: pointer;
}

.shake-animation {
animation: shake 0.3s;
}
21 changes: 21 additions & 0 deletions Style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ body {
position: absolute;
}

@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-3px);
}
50% {
transform: translateX(3px);
}
75% {
transform: translateX(-3px);
}
100% {
transform: translateX(0);
}
}
.page-header-section {
width: 100%;
display: flex;
Expand Down Expand Up @@ -104,6 +121,10 @@ body {
cursor: pointer;
}

.shake-animation {
animation: shake 0.3s;
}

.input-section,
.output-section {
width: 300px;
Expand Down
Loading

0 comments on commit 69e994a

Please sign in to comment.