# Battery-Friendly Animation: Motion That Does Not Drain Phones

> Animation drains battery when it runs continuously, does expensive work each frame or keeps the screen refreshing at high rates. Pause animations that are off screen or in hidden tabs, avoid endless loops, prefer cheap properties such as transform and opacity, reduce motion in low power or reduced-motion modes, and measure energy use on real devices.

Updated November 2026. Source: https://www.exodeui.com/learn/battery-friendly-animation/

## Key takeaways

- Pause hidden, off-screen and backgrounded animations
- Avoid endless decorative loops
- Animate cheap properties; avoid per-frame blur and shadow
- Respect reduced motion and low power modes; measure on devices

## Stop what nobody sees

The cheapest frame is the one you do not draw.

- Pause when the tab is hidden, using the Page Visibility API
- Pause elements scrolled out of view, using an IntersectionObserver
- Pause when the app goes to the background on mobile
- Stop loops after a few cycles if they are decorative

## Cheaper frames

Each frame costs less when it avoids layout and paint. Web.dev's rendering guidance recommends sticking to compositor-friendly properties such as transform and opacity. Large blurs, shadows and filters that change every frame cost far more.

## Respect user and system settings

Reduced motion is a strong hint to stop non-essential animation. Low power modes on phones also reduce refresh rates and background work; treat them as a signal to simplify. Do not force high frame rates for slow ambient motion.

## Measure it

Use platform energy tools, such as Xcode's energy reports and Android's profilers, and browser performance panels to see CPU and GPU use during animation. Test long sessions, not just the first few seconds.

## Building this in ExodeUI

ExodeUI components, which we make, move in response to inputs, so an interactive component that nobody touches mostly rests. Avoid endless decorative loops in your states, and pause components that are off screen.

## Frequently asked questions

### Do CSS animations drain battery?

Continuous ones can, especially if they trigger paint. Pause them when not visible.

### How do I pause animations in a hidden tab?

Listen for visibilitychange from the Page Visibility API and pause when document.hidden is true.

### Does Lottie or canvas animation use a lot of battery?

Any continuous rendering uses power. Pause off screen and avoid unnecessary loops.

### Should animations stop in low power mode?

Non-essential ones should be reduced or stopped, similar to reduced motion.

## Related

- [120Hz animation](https://www.exodeui.com/learn/high-refresh-rate-animation/)
- [Blur, glow and performance](https://www.exodeui.com/learn/blur-glow-effects-performance/)
- [Idle animations for UI characters](https://www.exodeui.com/learn/idle-animation-ui-characters/)
- [Animation and Core Web Vitals](https://www.exodeui.com/learn/animation-core-web-vitals/)
