Modern PNG includes frame-based animation. APNG can preserve full-color imagery and alpha transparency, but animation changes performance decisions.
Animation is now in the PNG standard
The W3C PNG Third Edition describes animated PNG as a frame-based animation sequence. That matters because APNG is no longer best understood as an unrelated hack attached to PNG.
The static image still matters
An animated PNG contains the normal PNG image plus animation-related information. The specification distinguishes the static image from animation frames in cases where the static image is not the first frame. Fallback behavior therefore deserves testing.
Why people choose APNG over GIF
APNG can use PNG's richer color and alpha capabilities, making it attractive for interface animation, stickers, and artwork where GIF's palette and transparency limitations are visible.
The cost is not only file size
Animation means repeated decoding, compositing, memory use, and possibly continuous work while the asset is visible. A small looping decoration can become expensive when many copies appear on one page.
Video can be better for long photographic motion
For long or photographic animation, video codecs are usually designed for a different compression problem and can be much more efficient. APNG is strongest when you specifically need image-like deployment plus high-quality transparency or short frame animation.
Test reduced-motion and fallback behavior
Do not evaluate an animation only by whether it plays. Consider user motion preferences, looping policy, accessibility, browser/application targets, and what a non-animating consumer sees.
Sources and technical basis
Primary technical reference: W3C Portable Network Graphics (PNG) Specification, Third Edition (2025). Web-delivery sections also use MDN guidance for responsive images where relevant.
