Lesson notes · updated 17 November 2026
Make the Loop Glow
Colour theory, easing curves and frame timing for short animations that feel warm, smooth and endless. Start with the numbers, then read the lessons below.
Frame-budget calculator
Enter a loop length and a frame rate. The calculator shows how many frames you need to draw and what per-frame delay a GIF file can actually store (GIF delays are whole hundredths of a second, so some rates get rounded).
Start the colour lessonLearn easing
Sunrise palettes: warm-to-cool gradients in 256 colours
A sunrise is a hard subject for a GIF. The sky moves through deep blue, violet, rose and orange in a smooth ramp, but each GIF frame can hold at most 256 colours. When an encoder squeezes a long gradient into a small palette, the ramp breaks into visible stripes, known as banding.
Three habits help. First, plan the palette before you animate: pick five to eight key colours along the ramp and let the in-betweens come from them. Second, keep large gradients slow; a gradient that shifts every frame forces the encoder to rebuild the palette each time, which shows up as flicker. Third, try a light dither. Error-diffusion dithering scatters pixels of neighbouring colours so the eye blends them, which hides banding at the cost of a slightly grainy look and a larger file.
A useful test: export the same loop with a global palette (one palette for the whole file) and with per-frame palettes. A global palette keeps colours steady from frame to frame; per-frame palettes can look richer but may shimmer.
Easing and timing, measured in frames
Objects in the real world rarely start or stop instantly. Animators call this “slow in and slow out”; interface designers call it easing. An ease-out move starts fast and settles gently, which suits things arriving on screen. An ease-in move starts gently and speeds up, which suits things leaving.
In a short loop you usually work in frames, not seconds. At 12 frames per second, a move over 6 frames lasts half a second. Spacing those 6 positions unevenly, with the gaps shrinking towards the end, gives an ease-out without any software curve. A hold, the same drawing repeated for two or three frames, gives the viewer time to read a pose before the next move.
Keep in mind that the GIF format stores each frame’s delay in hundredths of a second. The calculator above shows how a chosen frame rate gets rounded.
Seamless loops: hiding the seam
A loop feels endless when the last frame leads naturally into the first. The simplest method is to design the cycle as a circle: the motion returns to its starting pose one step before the loop restarts, so frame one is the next step rather than a repeat. Repeating the first frame at the end creates a tiny stutter, because the same image plays twice.
For colour, the same rule applies. If the light warms over the loop, it has to cool again before the end, or the restart will show as a sudden jump in brightness.
Critique corner: a checklist for your own loop
- Watch it ten times in a row. Does your eye catch the restart?
- Look for banding in large gradients, especially in skies and shadows.
- Check that every move has an ease or a reason not to have one.
- Count the holds: is there a moment where the viewer can rest?
- Check flashing. Accessibility guidance (WCAG 2.3.1) advises against content that flashes more than three times in any one second.
- If the loop runs longer than five seconds on a page, give readers a way to pause it (WCAG 2.2.2).
More lessons live in the lesson notes, the lesson topics and the FAQ.
Sources and further reading
- CompuServe, Graphics Interchange Format, Version 89a (1989) — the format specification, mirrored by the W3C.
- W3C, Web Content Accessibility Guidelines (WCAG) 2.2 — success criteria 2.2.2 (Pause, Stop, Hide) and 2.3.1 (Three Flashes or Below Threshold).
- MDN Web Docs, <easing-function> and prefers-reduced-motion reference pages.
- Frank Thomas and Ollie Johnston, The Illusion of Life: Disney Animation (1981) — the source of the “twelve principles”.
- Robert W. Floyd and Louis Steinberg, “An Adaptive Algorithm for Spatial Greyscale” (1976) — the error-diffusion dither most GIF tools still offer.
Get new lessons by email
An occasional note when a new lesson is published. No offers or sponsors.
Start the colour lessonLearn easingCheck my loop
Elsewhere on the web: animation and design headlines
An automated feed of third-party headlines. Links lead to other sites; this guide does not write or endorse them.