You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into different ways of animating (js libraries/config css styling) and believe the above approach with using tailwind css should be the simplest/fastest.
Modal Animation System: Centralized Management & Consistent Animations
Overview
Need to implement consistent open/close animations for all modals in the application:
Current State
Attempted Solutions
1. Component-level Animation State
Issues:
2. Parent Component Management
Issues:
Proposed Solution
1. Centralize Modal Management in _app.tsx
2. Modal-Specific Animations
Search Modals (StampSearch & SRC20Search)
Open Animation:
opacity-0
→opacity-100
(duration: 100ms)translate-y-[-30px] opacity-0
→translate-y-0 opacity-100
(duration: 300ms, delay: 100ms)Close Animation:
translate-y-0 opacity-100
→translate-y-[-30px] opacity-0
(duration: 300ms)opacity-100
→opacity-0
(duration: 100ms, delay: 300ms)Wallet Modal
Open Animation:
opacity-0
→opacity-100
(duration: 100ms)translate-y-[30px] opacity-0
→translate-y-0 opacity-100
(duration: 300ms, delay: 100ms)Close Animation:
translate-y-0 opacity-100
→translate-y-[30px] opacity-0
(duration: 300ms)opacity-100
→opacity-0
(duration: 100ms, delay: 300ms)3. Implementation Example
Benefits
Next Steps
Questions
The text was updated successfully, but these errors were encountered: