One layer starts tiny (say 10px), grows until it fills the screen (say 340%), and fades to opacity 0 — looping forever. Add three or four more layers running the identical animation but with negative delays (−1s, −2s, −3s…) so they each start at a different phase; the instant one layer fills the screen and vanishes, the next is already mid-grown, and the eye reads it as one continuous, unbroken zoom.
The timing between "growing" and "fading" is the whole trick — a layer needs to start turning transparent just before it fully fills the frame, or the handoff to the next layer pops instead of gliding. More layers (tighter delay spacing) makes the transition smoother, at the cost of more DOM nodes and paint work.
This isn't actually infinite content (a fractal, a recursively nested image) — it's the same animation repeated out of phase. The illusion is most convincing when the pattern itself is self-similar; overlapping visually different images mostly reads as "things growing and disappearing," and the sense of one continuous zoom weakens.
When to use
Use it for loading screens, background decoration, or a brand intro where you need eye-catching ambient motion. If you actually need to show content — images, data — use a real zoom interaction (pinch zoom, map zoom) instead of this illusion.