Skip to main content

How to create a Scratch-Off popup

Hide a reward under a scratch card that visitors scratch away, turning your opt-in into a quick, hands-on game.

Written by Rob D

Scratch-Off is a gamified step that covers a reward with a scratch card. Visitors scratch it away with their mouse or finger to reveal what they've won. Like Spin-to-Win, Pick a card, Plinko, and Mystery Box, it makes the opt-in moment feel like a fun interaction rather than a standard signup form. You can use it as the first step of a new campaign or add it to an existing popup flow.

💡Tip: Starting a new popup? Lia can build it for you with a Scratch-Off as the first step. On the Choose a template step, select building with Lia and write "Start with a Scratch-off popup." See How to build a popup with Lia. Already have a popup? In the editor, click + (Add a step) > First step > Build with Lia, add "Scratch-Off" to the end of the message, and send it.

How to add Scratch-Off

There are two ways to add Scratch-Off to your popup:

From Scratch: When creating a new popup, select Scratch Off as your first step.

To an Existing Popup: Open your popup in the editor, click the + (Add a step) icon in the step bar, and select Scratch Off. You can then drag and drop the step into position in your popup flow.

Edit the reward text

The reward text is what visitors see once they've scratched the card away.

  1. In the left-hand sidebar, open the content under the scratch-off element.

  2. Select the text element.

  3. Edit the reward text in the right-hand sidebar.

Customize the scratch card

Select the scratch-off element and use the right-hand sidebar to match it to your brand:

  • Text Size and Font: The size and typeface of the reward text.

  • Colors: The text color and the background color. Pick a text color with strong contrast against the background.

  • Brush Settings: How the scratch looks and behaves, including the brush size and the minimum percentage of the card that must be scratched before the reward is revealed.

Use your own cover image

Instead of the default scratch card, you can cover the reward with your own image, like your logo, a gift box, or seasonal artwork. Visitors scratch away your image to reveal what's underneath.

You'll need 2 images:

  • Cover image: The image visitors scratch away. Use a PNG, WEBP, or SVG so its transparent areas work. JPG and JPEG files won't work.

  • Background image: The image visitors uncover, such as your offer.

Both images need the same aspect ratio. There's no required size, but the default scratch card is 300 × 220 px, so keep your images in a similar range and don't go smaller.

1. Add the cover image

  1. Upload the cover image you want visitors to scratch away.

  2. Open the image's CSS settings and copy its aspect ratio.

  3. Delete the height so only a width is set. This keeps the image's proportions instead of forcing a fixed height.

2. Turn the cover image into the mask

  1. Scroll to Background and add the same cover image again.

  2. Open the CSS settings and rename the background image property to mask.

  3. Add these 3 properties:

maskPosition: center center
maskRepeat: no-repeat
maskSize: contain

3. Add the image to reveal

  1. Add the background image that visitors will uncover.

  2. Set Image fit to Contain, Image repeat to No repeat, and Image position to Center.

  3. Use Preview to test the scratch on both desktop and mobile before publishing.

💡Tip: Lia can set this up for you. With the scratch-off element selected, try: "Make the scratch-off respect the cover image's aspect ratio, and remove the mask once it's scratched." See Getting started with Lia.

If part of your offer stays hidden after scratching, select the scratch-off element and ask Lia: "Keep the current mask image when unscratched, but remove it completely once it's scratched." After this change, the mask may look missing in the editor, so check it in Preview mode. To learn more about masks, see How to crop elements with masks and clip paths.

What visitors see

When the popup opens, visitors see the scratch card. They scratch it with their mouse or finger to uncover the reward.

The claim button stays hidden until the visitor has scratched past the minimum percentage you set in Brush Settings. Once the reward is revealed, the claim button appears so they can continue.

Before publishing, open the Publish dropdown and select Review popup to have Lia check your popup for consistency. Then use Preview mode to test the scratch on both desktop and mobile.

Publish your campaign

Once you're happy with your reward and styling, click Publish in the top right corner, or set up an A/B test to compare Scratch-Off against your current first step. When testing, change only the first step so you get a clean read on Scratch-Off itself. You can track its performance alongside your other campaigns from your Alia dashboard.

FAQ

How much do visitors have to scratch before they see the reward?

You decide. Set the minimum percentage in Brush Settings. The claim button appears once a visitor scratches past it.

Why doesn't my JPG work as a cover image?

JPG and JPEG files can't have transparent areas, which the cover image needs. Save it as a PNG, WEBP, or SVG instead.

Do my cover and background images need to be the same size?

They need the same aspect ratio, not identical pixel dimensions.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?