chore (react-spinner): Rewrite Spinner animation using only rotation transforms#30567
Merged
behowell merged 16 commits intomicrosoft:masterfrom Mar 4, 2024
Merged
Conversation
Collaborator
📊 Bundle size report
Unchanged fixtures
|
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | virtual-rerender-with-unmount | 73 | 78 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 633 | 588 | 5000 | |
| Button | mount | 304 | 300 | 5000 | |
| Field | mount | 1074 | 1125 | 5000 | |
| FluentProvider | mount | 695 | 692 | 5000 | |
| FluentProviderWithTheme | mount | 76 | 81 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 58 | 59 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 73 | 78 | 10 | Possible regression |
| MakeStyles | mount | 856 | 847 | 50000 | |
| Persona | mount | 1773 | 1706 | 5000 | |
| SpinButton | mount | 1349 | 1333 | 5000 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
fabricteam
reviewed
Feb 17, 2024
change/@fluentui-react-spinner-65e1fe2a-ca72-408e-90eb-6a1ca3f6caca.json
Show resolved
Hide resolved
efee710 to
b846c5c
Compare
2 tasks
tomi-msft
approved these changes
Feb 23, 2024
spmonahan
reviewed
Feb 26, 2024
packages/react-components/react-spinner/etc/react-spinner.api.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinner/src/components/Spinner/renderSpinner.tsx
Show resolved
Hide resolved
spmonahan
approved these changes
Mar 1, 2024
…pinner/conic-gradient-animation
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.


Previous Behavior
Spinner currently animates a svg's circle path. This type of animation is not optimized by browsers to run on the compositor thread. As a result, if the main thread is busy while the loading spinner is visible, it drops frames from the animation.
New Behavior
reduced-motionis enabled: a gradient spinner that doesn't change size as it rotates.See a live demo on the Pull-Request Demo Site.
Tip; To see the reduced motion visuals on Windows, go to Settings > Accessibility > Visual effects > Animation effects: off.
Related Issue(s)