feat: add cross-fade/slide transition between CreateStreamModal steps (Closes #1275) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1365
Open
waterWang wants to merge 1 commit into
Conversation
…Closes Fluxora-Org#1275) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - Add step-fade-slide @Keyframes animation with opacity + translateX - Wrap each step's content in a div with key={currentStep} and .step-transition class for React mount/unmount animation trigger - Forward navigation slides in from right (translateX(16px)) - Respect prefers-reduced-motion: disable animation - Fix pre-existing bug: define and export LOADING_TEST_IDS from Skeleton.tsx - Fix pre-existing bug: add missing LOADING_TEST_IDS import to StreamsLoading.tsx, RecipientLoading.tsx, TreasuryOverviewLoading.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CreateStreamModalswaps step 1/2/3 content instantly with no transition. This PR adds a brief cross-fade (with horizontal slide matching Back/Next direction) between steps, keyed on the current step index.Changes
CreateStreamModal.css— Addedstep-fade-slidekeyframe animation (opacity 0→1, translateX 16px→0) withprefers-reduced-motionsupportCreateStreamModal.tsx— Wrapped each step's content in a<div key={currentStep} className="step-transition">so React's mount/unmount triggers the CSS animation on each step changeSkeleton.tsx— Defined and exportedLOADING_TEST_IDSconstant (pre-existing bug fix)StreamsLoading.tsx,RecipientLoading.tsx,TreasuryOverviewLoading.tsx— Added missingLOADING_TEST_IDSimport (pre-existing bug fix)Accessibility
prefers-reduced-motion: steps swap instantly with no animationTesting
Closes #1275