Making HTML5 banners: technique, performance and best practices for 2026.
How to keep HTML5 banners light, fast and approved: file size, animation, fallbacks and the specs of Google Ads and DV360.
Frank van BemmelCo-owner & Technical Director · Art direction and technology

Image: made with AI, chosen by us.
Why professional HTML5 banners make the difference.
HTML5 has been the standard for display advertising for over ten years. Google Ads, DV360, Xandr and Adform each have their own requirements for file weight, the clickTag and the length of the animation, and a banner that doesn’t meet them gets rejected.
The difference between a banner that goes live and one that comes back from the trafficker is in the details: how heavy the file is, how the animation runs and whether the clickTag is set up correctly.
Below is how we approach that every day: the animation, the weight, the code and the guidelines we stick to for every set.
More on having HTML5 banners made and the GoodHabitz case. Or start a project.

Animation in banners: grabbing attention in the first few seconds.
HTML5 banner animation is the most powerful tool for steering attention in a sea of display ads. Not decoration: the movement decides where someone looks first.
Good HTML5 banner animation:
- Shows the key message within 1.5-2 seconds.
- Builds up in keyframes (intro → problem → solution → CTA).
- Uses GPU-friendly animations (transform + opacity).
- Has subtle, natural easing (not too harsh or too robotic).
- Limits itself to 3-4 moving elements at a time.
Best practices for HTML5 banner animation in 2026
- Always start with a clear entry animation.
- Use motion delay for layering.
- Only show the CTA after the pay-off.
- Make sure there’s a clear stop frame (the last frame stays on screen for at least 5 seconds).
- Keep animation short: the IAB guideline works with a maximum of 15 seconds, Google Ads allows 30 seconds. How often a banner may loop differs per platform and publisher; three times is a common limit. Always check the specs of the media plan.
HTML5 banner performance: speed = conversion.
A flashy banner that loads slowly isn’t a banner but a missed opportunity. A banner that loads too late doesn’t get seen. And what doesn’t get seen, doesn’t get clicked.
Critical optimisations (our standard):
File size
- No weight limit applies everywhere: follow the specs of the platform and the publisher. Google Ads accepts an HTML5 zip of up to 600 KB with at most 40 files. For the initial load, the IAB works with 150 KB for a rectangle and 250 KB for a billboard.
- DV360 and rich media: up to 300–500 KB is often realistic, with a total download <5 MB.
- Adform / Xandr: more lenient, up to 500 KB recommended (sometimes higher). Always test per platform!
- Use WebP + SVG wherever possible.
- No jQuery or heavy libraries.
Code & animation
- Built entirely in HTML5 with GSAP as the animation engine
- Animations primarily via transform and opacity for optimal compositing performance
- We deliberately avoid layout-affecting properties such as left and top in animations
- Lightweight DOM structure with controlled, targeted manipulation
- Optimised for stable performance within strict ad server and platform limits
Technical must-haves
- Correct clickTag (case-sensitive).
- Enabler implemented correctly.
- Polite loading + static fallback version.
- Viewability-ready (Intersection Observer ready).
Tools for optimal performance
- Google Web Designer (free, Google-friendly).
- Adobe Animate (for HTML5 Canvas export).
- CreateJS or pure GSAP for advanced animations.
HTML5 banner guidelines & best practices (2026).
These are the guidelines our HTML5 banner agency follows as standard. We combine creative imagination with in-depth technical knowledge.
- First 3 seconds rule → main message + logo visible within 2 seconds.
- One visual focus per frame.
- CTA always prominent (min. 24-28px, sufficient contrast).
- Mobile-first design: in most media plans, the biggest share of impressions comes from mobile. Use sizes such as 320×50, 300×100 or 300×250.
- Animation supports, it doesn’t distract.
- Always provide a fallback (for older browsers or restrictive environments).
Why choose a specialist HTML5 banner agency?
A good HTML5 banner agency combines:
- Strong design.
- Psychologically grounded HTML5 banner animation.
- Performance optimisation.
- In-depth platform knowledge (Google, DV360, Adform, Xandr, etc.).
Anyone who wants to go beyond standard HTML5 ads goes for rich media banners with video, form elements, 360-degree views or interactive storytelling. We build those too.
Conclusion.
Making HTML5 banners is a craft of its own. The idea has to land within two seconds, the file has to stay within the platform’s weight limit and the code has to pass the checks of Google, DV360, Xandr or Adform. If one of those three goes wrong, you’ll notice it in the campaign.
We make HTML5 banners every day, within the weight and specs of every platform, and every set goes through our QA before it goes live. Get in touch and we’ll look at your campaign together.


