diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-04-11 22:17:58 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-04-11 22:17:58 +0800 |
| commit | c8e3a31834812d6d44006122e2a89b29091a7519 (patch) | |
| tree | f374dc32a5174f728d9ad8b3fab6e3172f6f837f /website/style.css | |
| parent | 5a8ba6f8a61ab7921649d6c191c52d0eb78c14f7 (diff) | |
added silly animations for copy button
Diffstat (limited to 'website/style.css')
| -rw-r--r-- | website/style.css | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/website/style.css b/website/style.css index 7cf1e97..bb4bf1c 100644 --- a/website/style.css +++ b/website/style.css @@ -73,10 +73,36 @@ textarea:focus { background: #1e202131; } +@keyframes copyBtnAnimation { + 0% { + transform: scale(1.1); + } + 25% { + transform: scale(1); + } + 50% { + transform: scaleX(0.5); + } + 75% { transform: rotate(0deg); } + 80% { transform: rotate(.15deg); } + 85% { transform: rotate(0eg); } + 90% { transform: rotate(-.10deg); } + 100% { transform: rotate(0deg); } +} + +@keyframes shake { + 0% { transform: rotate(0deg); } + 25% { transform: rotate(.5deg); } + 50% { transform: rotate(0eg); } + 75% { transform: rotate(-.5deg); } + 100% { transform: rotate(0deg); } +} + #copyBtn:disabled { - background: #1E2021 + background: #1E2021; + animation: shake 250ms infinite; } #copyBtn:active { - transform: scale(1.1); + animation: copyBtnAnimation 1500ms; }
\ No newline at end of file |
