Skip to content

[$125] Animation: Many Pages: The moving animation cannot be stopped or paused #76915

Closed

Description

@nbhardwaj-del

Action Performed:

  1. Using Windows + Chrome, open the page https://new.expensify.com/
  2. Observe the moving animation on the page and attempt to either pause or stop it

Other Occurrences:

  1. On Settings - Troubleshoot: the animation at the top of page
  2. On Settings - Save the World: the animation at the top of page
  3. On Settings - Preferences: the animation at the top of page
  4. On Settings - Security: the animation at the top of page
  5. On Workspaces - Expensify Card - Add bank account: the animation at the top of dialog
  6. On Reports - No expenses to submit
  7. On Book Travel
  8. On Wallet

Expected Result:

If animations exist and last more than five seconds, there should be a mechanism to stop/pause automatically moving information.

Actual Result:

The gif animation plays in a loop. The user cannot pause or stop it.

HTML:

Area issue was found in:

Landing Page

Failed WCAG checkpoints

WCAG 2.2.2 Pause, Stop, Hide
https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide

User impact:

Users who have difficulty perceiving visual content use assistive technology to read text aloud, present it visually, or convert it to braille. Text alternatives may help some people who have difficulty understanding the meaning of photographs, drawings, and other images (e.g., line drawings, graphic designs, paintings, three-dimensional representations), graphs, charts, animations, etc. People who are deaf-blind can read the text alternatives in braille.

Suggested resolution:

Ensure that there is a means to stop or pause the animation. One possible solution for animated gifs is demonstrated here:
https://codepen.io/stevef/pen/ExPdNMM
https://www.w3.org/WAI/WCAG21/Understanding/pause-stop-hide.html

Environment(s)

Windows Windows 10 - Chrome

Screenshots/Videos

Bug6995108_1762361928280.No_way_to_pause_or_stop_animation_on_page.mp4
Image

Version Number: NA
Reproducible in staging?: NA
Reproducible in production?: Yes
Email or phone of affected tester (no customers): NA
Logs: https://stackoverflow.com/c/expensify/questions/4856 NA
Notes/Photos/Videos: Any additional supporting documentation Yes
Expensify/Expensify Issue URL: https://platform.applause.com/company/12102/products/36605/community-issues/6995108
Issue reported by: NA
Slack conversation: NA

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022013781037477234925
  • Upwork Job ID: 2013781037477234925
  • Last Price Increase: 2026-01-28
  • Automatic offers:
    • aimane-chnaif | Contributor | 110285533
Issue OwnerCurrent Issue Owner: @rushatgabhane

Activity

  1. added
    Weekly
    Accessibility
    on Dec 7, 2025
  2. added and removed
    Weekly
    on Jan 1, 2026
  3. melvin-bot commented on Jan 1, 2026

    @melvin-bot

    This issue has not been updated in over 15 days. eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  4. added
    External
    Bug
    on Jan 9, 2026
  5. rushatgabhane commented on Jan 9, 2026

    @rushatgabhane
    Member

    the correct amount for this issue is $125

  6. changed the title [-]Animation: Many Pages: The moving animation cannot be stopped or paused[/-] [+][$125] Animation: Many Pages: The moving animation cannot be stopped or paused[/+] on Jan 9, 2026
  7. melvin-bot commented on Jan 9, 2026

    @melvin-bot

    ⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

  8. annaweber830 commented on Jan 16, 2026

    @annaweber830
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    On multiple pages (e.g., landing page and various settings/workspace/report empty states), there are looping animations that run longer than 5 seconds and users have no way to pause/stop them, which fails WCAG 2.2.2 Pause, Stop, Hide

    What is the root cause of that problem?

    Animations (notably Lottie-based header/empty-state animations and other continuously moving media) are rendered with autoplay + loop enabled by default and there is no shared UI mechanism exposed to users to pause/resume the motion once it starts.

    What changes do you think we should make in order to solve the problem?

    • Add a standard Pause/Play control for looping animations at the shared animation rendering layer (so it automatically applies wherever those looping animations are used).
    • Ensure the control is accessible (keyboard operable, labeled for screen readers).
    • Respect reduced motion preferences by not auto-playing (or starting paused) when the user indicates they prefer reduced motion, while still allowing manual play.
    const reducedMotionEnabled = useReducedMotion();
        const shouldShowAnimationControls = !!browser && !!props.loop;
        const [isPlaying, setIsPlaying] = useState(() => !reducedMotionEnabled);
        const [hasNavigatedAway, setHasNavigatedAway] = React.useState(false);
        const navigationContainerRef = useContext(NavigationContainerRefContext);
        const navigator = useContext(NavigationContext);
    
        useEffect(() => {
            if (!browser || !navigationContainerRef || !navigator) {
                return;
            }
            const unsubscribeNavigationFocus = navigator.addListener('focus', () => {
                setHasNavigatedAway(false);
                if (isPlaying) {
                    animationRef.current?.play();
                }
            });
            return unsubscribeNavigationFocus;
        }, [browser, navigationContainerRef, navigator, isPlaying]);
    
    useEffect(() => {
            if (!shouldShowAnimationControls || !reducedMotionEnabled) {
                return;
            }
            setIsPlaying(false);
            animationRef.current?.pause();
        }, [reducedMotionEnabled, shouldShowAnimationControls]);
    
        useEffect(() => {
            if (!shouldShowAnimationControls || !animationRef.current || hasNavigatedAway) {
                return;
            }
            if (isPlaying) {
                animationRef.current.play();
                return;
            }
            animationRef.current.pause();
        }, [isPlaying, shouldShowAnimationControls, hasNavigatedAway]);
    
    <View style={[aspectRatioStyle, props.style]}>
                <LottieView
                    // eslint-disable-next-line react/jsx-props-no-spreading
                    {...props}
                    autoPlay={reducedMotionEnabled ? false : props.autoPlay}
                    source={animationFile}
                    key={`${hasNavigatedAway}`}
                    ref={(newRef) => {
                        if (typeof ref === 'function') {
                            ref(newRef);
                        } else if (ref && 'current' in ref) {
                            // eslint-disable-next-line no-param-reassign
                            ref.current = newRef;
                        }
                        animationRef.current = newRef;
                    }}
                    style={[styles.h100, styles.w100]}
                    webStyle={{...aspectRatioStyle, ...webStyle}}
                    onAnimationFailure={() => setIsError(true)}
                    testID={CONST.LOTTIE_VIEW_TEST_ID}
                />
                {shouldShowAnimationControls && (
                    <Tooltip text={isPlaying ? translate('videoPlayer.pause') : translate('videoPlayer.play')}>
                        <PressableWithFeedback
                            accessibilityLabel={isPlaying ? translate('videoPlayer.pause') : translate('videoPlayer.play')}
                            onPress={() => setIsPlaying((prev) => !prev)}
                            role={CONST.ROLE.BUTTON}
                            style={[
                                {
                                    position: 'absolute',
                                    top: 8,
                                    right: 8,
                                    backgroundColor: theme.videoPlayerBG,
                                    borderRadius: 8,
                                    padding: 4,
                                },
                            ]}
                            hoverStyle={{backgroundColor: theme.transparentWhite}}
                            sentryLabel="lottie-play-pause"
                        >
                            <Icon
                                src={isPlaying ? Expensicons.Pause : Expensicons.Play}
                                fill="white"
                                small
                            />
                        </PressableWithFeedback>
                    </Tooltip>
                )}
            </View>
    

    What alternative solutions did you explore? (Optional)

    • Adding pause/stop controls individually on each affected page
  9. 83 remaining items

  10. rushatgabhane commented on May 13, 2026

    @rushatgabhane
    Member

    Being tracked in excel 😅

    TLDR; QA needs to retest with reduced animations turned on

  11. melvin-bot commented on May 18, 2026

    @melvin-bot

    @rushatgabhane Eep! 4 days overdue now. Issues have feelings too...

  12. melvin-bot commented on May 20, 2026

    @melvin-bot

    @rushatgabhane 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  13. melvin-bot commented on May 22, 2026

    @melvin-bot

    @rushatgabhane 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  14. melvin-bot commented on May 26, 2026

    @melvin-bot

    @rushatgabhane 12 days overdue now... This issue's end is nigh!

  15. added
    Weekly
    and removed
    Daily
    on May 29, 2026
  16. melvin-bot commented on May 29, 2026

    @melvin-bot

    This issue has not been updated in over 14 days. @chuckdries, @mallenexpensify, @rushatgabhane, @aimane-chnaif, @dubielzyk-expensify eroding to Weekly issue.

  17. chuckdries commented on May 29, 2026

    @chuckdries
    Contributor

    @rushatgabhane should I ping QA in slack to retest this or something?

  18. mallenexpensify commented on May 30, 2026

    @mallenexpensify
    Contributor

    @rushatgabhane will address, he's got a plan.

  19. rushatgabhane commented on Jun 3, 2026

    @rushatgabhane
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AccessibilityBugDesignExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions