diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-08 15:32:37 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-08 15:32:37 +0700 |
| commit | 4c349516efaee6151456d18162da797e6bd33434 (patch) | |
| tree | f02fa06e92da8adb4b3298ddcc83411173cdb04a /src/styles/globals.css | |
| parent | 6e7c23ac2c2a57579e22d5557f61c6962c35cc42 (diff) | |
Add flash sale icon on product detail
Diffstat (limited to 'src/styles/globals.css')
| -rw-r--r-- | src/styles/globals.css | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/styles/globals.css b/src/styles/globals.css index af9f9bea..06ae7ca2 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -638,4 +638,22 @@ button { 30%, 50%, 70% { transform: translateX(-10px); } 40%, 60% { transform: translateX(10px); } 100% { transform: translateX(0); } - } +} + +.blink-color-flash-sale { + @apply text-body-1 md:text-title-sm; + transform: rotateY(180deg) rotateZ(120deg); + animation-name: blink-color-flash-sale; + animation-duration: 300ms; + animation-iteration-count: infinite; + animation-timing-function: linear; +} + +@keyframes blink-color-flash-sale { + from { + @apply text-danger-500; + } + to { + @apply text-warning-500; + } +}
\ No newline at end of file |
