Add animation effects
Adds subtle animation effects to improve user experience.
This commit is contained in:
@@ -138,15 +138,15 @@ const AddTransactionButton = () => {
|
||||
<>
|
||||
<div className="fixed bottom-24 right-6 z-20">
|
||||
<button
|
||||
className={`transition-all duration-300 bg-neuro-income shadow-neuro-flat hover:shadow-neuro-convex text-white animate-pulse-subtle ${
|
||||
showText ? 'flex items-center gap-2 px-4 py-3 rounded-full' : 'p-4 rounded-full'
|
||||
className={`transition-all duration-300 bg-neuro-income shadow-neuro-flat hover:shadow-neuro-convex text-white ${
|
||||
showText ? 'flex items-center gap-2 px-4 py-3 rounded-full animate-bounce-gentle' : 'p-4 rounded-full animate-pulse-subtle'
|
||||
}`}
|
||||
onClick={() => setShowExpenseDialog(true)}
|
||||
aria-label="지출 추가"
|
||||
disabled={isSubmitting}
|
||||
>
|
||||
<PlusIcon size={showText ? 20 : 24} />
|
||||
{showText && <span className="mr-1">지출 입력</span>}
|
||||
<PlusIcon size={showText ? 20 : 24} className={showText ? "" : "animate-spin-slow"} />
|
||||
{showText && <span className="mr-1 animate-fade-in">지출 입력</span>}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user