Black Friday sale is on: up to 50% off, ends 5 Dec (UTC)
All guides

How SVGA works inside a live app: from the designer to the gift on screen

The full path of an SVGA animation: how it is made, what the file stores, how the player draws it over live video, and how names and photos are placed into it at run time.

From design to file

An animation starts as separate pictures: a body, a wing, a flame, a glow. The animator moves, scales, rotates and fades each picture over time. The exporter then writes one .svga file that contains those pictures once, plus the position, size, rotation and opacity of each one on every frame.

That is the whole idea: the file stores instructions, not video. A wing that beats for three seconds is one small picture and a list of numbers.

What is inside an SVGA file

What the player does

The app includes a small SVGA player library. It reads the file, keeps the pictures in memory, and on every frame draws each picture where the file says, with real transparency, so the live video shows through everywhere else.

Because drawing is done by the phone's graphics hardware, a well-made animation costs very little. A badly made one, with huge pictures or too many layers, can still slow a room down.

Play SVGA on Android, iOS, Flutter and web

Putting a name or a photo into an animation

A layer in an SVGA file has a key, a name. The app can replace the picture of a keyed layer, or draw text on it, just before playing. That is how one entrance banner shows every user's own name and one avatar frame holds every user's own photo.

When you buy a file meant for this, check that it has the key your code expects, or ask for it to be added.

Entrance effects and name bars

Sound

An SVGA file may carry a sound that starts on a given frame, so a gift's roar or chime is always in step with the picture. Large full-screen gifts and rides usually have one; small loops such as frames and badges do not.

Queues and loops

Small pieces loop for ever: frames, badges, mic rings, chat bubbles. Events play once: a gift, an entrance, a ride. In a busy room several events arrive together, so the app queues them and plays one large effect at a time while small ones run in their own lanes.

You can watch any file, with its size, frame rate, length and sound, in the free player on this site. Nothing is uploaded.

Open the free SVGA Player