How to make animated wallpaper ads

Animated wallpaper ads are large display ads that take up the middle background of a page. However, unlike standard wallpaper ads, the main creative is completely hidden from view. By default, only a small creative is visible on top of the page. When the viewer clicks on that small image, the content on the page appears to fall and lie flat at the bottom of the page, revealing the main creative.

You can use native templates to create animated wallpaper ad items that are tailored to your needs.

A sample animated wallpaper ad

A sample animated wallpaper ad fully revealed

In this guide, we're going to create a simple animated wallpaper ad. You can customize the sample HTML code to fit your needs.

How to create a native animated wallpaper ad template

This template will require the user to provide the URL to where the image creative is hosted when creating the animated wallpaper ad item.

  1. Click Templates in the left navigation menu to go to the Templates section.
  2. Click Add New in the Native Ad Templates table. The New Native Template window will appear.
  3. Select the type of native template that you want to create. The New Native Ad Template page will appear.
Templates for native (custom rendering/API) ad items are not compatible with native (styled) ad items, and vice-versa.
  1. Name the template then add two image URL variables (one for the default image, and another one for the hidden image). In our sample code, we called these variables ImageURL and ImageURL2.
  2. Enter the code in the HTML/Script field, then click Save template.

Creating an animated wallpaper ad native template

Here's the code we used in our example:

<!DOCTYPE html>
<html lang="en">
    <script src=""></script>
    #animated-wallpaper-relDiv {
        position: relative;
        width: 1px;
        margin: 0 auto;
        overflow: visible;

    #animated-wallpaper-container {
        display: none;
        position: absolute;
        width: 500px;
        height: 668px;
        left: -250px;
        top: 175px;

    #animated-wallpaper-image {
        width: 795px;
        height: 155px;
        display: block;
        z-index: 9999;
        margin: 20px auto;
        text-align: center;
        cursor: pointer;
        box-shadow: none;

    #contentWrapper {
        position: relative;
        display: block;
        top: 0;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: 0.6s;
        transition: 0.6s;
        -webkit-transform: perspective(1000px) rotateX(0deg);
        transform: perspective(1000px) rotateX(0deg);
        transform-origin: 50% 1px;
        -webkit-transform-origin: 50% 1px;

    #animated-wallpaper-close {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;

    #animated-wallpaper-close-button {
        padding: 1px 4px;
        display: inline-block;
        color: #fff;
        font: 16px Verdana,sans-serif;
        cursor: pointer;
        border-radius: 36px;
        background: #000000;
        margin: 2px;
    function openImageContainer() {
            display: 'block',
            'z-index': '10001'

            top: '700px',
            transform: 'perspective(1000px) rotateX(60deg)'

            display: 'block'

    function closeButton() {
        document.getElementById('animated-wallpaper-container').style.display = 'none';

            display: 'none'

            top: '0',
            transform: 'perspective(1000px) rotateX(0deg)'
<body style="width:100%;">
<div id="animated-wallpaper-relDiv">
    <div id="animated-wallpaper-container">
        <a target="_blank" href="[TRACKING_LINK]">
            <img src="[%ImageURL2%]" width="500" border="0" height="668" alt="">
        <div id="animated-wallpaper-close">
            <span id="animated-wallpaper-close-button" onclick="closeButton()">×</span>
<div id="animated-wallpaper-image">
    <img style="height: 155px;" src="[%ImageURL%]" onclick="openImageContainer()">
<div id="contentWrapper"
     style="background-color: #D2D6D9; position: relative; width: 60vw; height: 100vh; display: block; margin: 20px auto; top: 0px; transform: perspective(1000px) rotateX(0deg);">
<!--Sample content area for the website-->

How to create a native animated wallpaper ad item

  1. Go to the section of the relevant zone (Your AdButler > Publishers > Your Publisher > Your Zone) or campaign (Your AdButler > Advertisers > Your Advertiser > Your Campaign).
We recommend assigning native ad items and campaigns with native ad items to dynamic zones.
  1. Click Add New in the Ad Items table. The Add Ad Item window will appear.
  2. Click Native. The New Ad Item page will appear.
  3. Select your animated wallpaper native ad template in the Template dropdown menu.
  4. Fill in the rest of the fields as needed, including the image URLs. If you entered a destination URL, you can test it by clicking Open Destination URL to the right of the field.
  5. Click Save Ad Item.
Read About ad items for more on AdButler's ad item types and their parameters.

Creating an animated wallpaper ad item

Can't find what you're looking for?

Send us an email

Visit the blog

For more ad serving tips, industry news and AdButler insights.