From 4c349516efaee6151456d18162da797e6bd33434 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 8 Sep 2023 15:32:37 +0700 Subject: Add flash sale icon on product detail --- src/styles/globals.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/styles/globals.css') 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 -- cgit v1.2.3