How to add a notification pop-up with Claude

A white phone notification with a red shopping-bag icon drops in at the top saying "Your serum is back in stock", then slides away.

Get this effect

  1. Switch to Code in your Claude Desktop App

  2. Install the skill (once)

    Show the prompt
    Install the Recharm video effects skill: download https://recharm-growth-staging.s3.us-east-2.amazonaws.com/website/downloads/recharm-video-effects.zip and unzip it into ~/.claude/skills
  3. Ask for the effect

    Add a notification pop-up to input.mp4
    App, when: SHOP, now
    Title: Your serum is back in stock
    Body: Only 50 left. Tap to grab yours

Several videos, several effects, one ask

Put your clips in the folder, mention them with @, and ask for everything at once. Claude runs one tested script after another on each clip, then joins them.

Add a notification pop-up to @clip1.mp4, put a sale badge on @clip2.mp4, give @clip3.mp4 a VHS look, then join all three with crossfades.

Settings you can change

Ask Claude to change any of these, or edit them at the top of the script.

SettingDefaultWhat it does
APP, WHENSHOP, nowApp name and time stamp on the top line.
TITLEYour serum is back in stockBold line.
BODYOnly 50 left. Tap to grab yoursGrey line under it.
START0.5Second the banner starts dropping in.
HOLD3.0Seconds it stays down before sliding away.
ICON_COLOR(255, 59, 48)App icon color.

Without the skill

Don’t want to install the skill? Paste this prompt into Claude Code and Claude writes the script itself.

Show the prompt
Add a phone-style notification to input.mp4: a pure white (255, 255, 255) rounded banner 92% of the frame width, centered across, its top 4% of the way down, with a soft dark shadow. On its left, a red (255, 59, 48) rounded-square app icon 13% of the banner width with a white shopping bag on it; to its right, "SHOP" in small grey, "now" in small grey at the right edge, "Your serum is back in stock" in black bold, and "Only 50 left. Tap to grab yours" in grey under it. The banner drops in from above the top edge at 0.5 seconds over 0.4 seconds with a slight bounce, stays fully down for 3 seconds, then slides back up out of frame over 0.4 seconds (gone by 4.3 seconds). Use Python with Pillow to draw it and ffmpeg to put it on the video (don't rely on ffmpeg's drawtext filter), keep the audio, and save it as output.mp4.

Run it without Claude

This is the exact script we tested. Save it as notification-pop-up.py and run:

python3 notification-pop-up.py input.mp4 output.mp4
Show the script
#!/usr/bin/env python3
"""Notification pop-up: a phone-style banner drops in from the top edge, sits for a few seconds, then slides away.

Usage: python3 notification-pop-up.py input.mp4 output.mp4
Needs ffmpeg and Pillow (pip install pillow).
"""
import json
import math
import subprocess
import sys
from pathlib import Path

from PIL import Image, ImageDraw, ImageFilter, ImageFont

APP = "SHOP"                              # app name in small caps beside the icon
WHEN = "now"                              # time stamp on the right
TITLE = "Your serum is back in stock"     # bold line
BODY = "Only 50 left. Tap to grab yours"  # grey line under it
START = 0.5              # second the banner starts dropping in
DROP = 0.4               # seconds the drop takes
HOLD = 3.0               # seconds it stays fully down before sliding back up
WIDTH = 0.92             # banner width as a share of the frame width
TOP = 0.04               # gap above the banner as a share of the frame height
ICON_COLOR = (255, 59, 48)  # app icon color
FONTS = ["/System/Library/Fonts/Supplemental/Arial Bold.ttf",     # macOS
         "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",  # Linux
         "C:/Windows/Fonts/arialbd.ttf"]                          # Windows
REGULAR_FONTS = ["/System/Library/Fonts/Supplemental/Arial.ttf",  # macOS
                 "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",  # Linux
                 "C:/Windows/Fonts/arial.ttf"]                   # Windows
FONT_FILE = next((f for f in FONTS if Path(f).exists()), None) or sys.exit("No bold font found: add one to FONTS")
REGULAR_FILE = next((f for f in REGULAR_FONTS if Path(f).exists()), None) or sys.exit("No font found: add one to REGULAR_FONTS")


def banner():
    """The white banner with its soft shadow, drawn once."""
    bw = round(w * WIDTH)
    pad, icon = round(bw * 0.04), round(bw * 0.13)
    bh = icon + 2 * pad + round(bw * 0.03)
    shadow = round(bw * 0.04)
    img = Image.new("RGBA", (bw + 2 * shadow, bh + 2 * shadow))
    draw = ImageDraw.Draw(img)
    draw.rounded_rectangle([shadow, shadow + 4, shadow + bw, shadow + bh + 4], radius=bh // 4, fill=(0, 0, 0, 70))
    img = img.filter(ImageFilter.GaussianBlur(shadow / 2))
    draw = ImageDraw.Draw(img)
    x0, y0 = shadow, shadow
    draw.rounded_rectangle([x0, y0, x0 + bw, y0 + bh], radius=bh // 4, fill="white")

    ix, iy = x0 + pad, y0 + (bh - icon) // 2
    draw.rounded_rectangle([ix, iy, ix + icon, iy + icon], radius=icon // 4, fill=ICON_COLOR)
    bag = [ix + icon * 0.28, iy + icon * 0.38, ix + icon * 0.72, iy + icon * 0.78]
    draw.rounded_rectangle(bag, radius=icon // 14, fill="white")
    draw.arc([ix + icon * 0.37, iy + icon * 0.2, ix + icon * 0.63, iy + icon * 0.52], 180, 360, fill="white", width=max(2, icon // 14))

    tx = ix + icon + pad
    small = ImageFont.truetype(REGULAR_FILE, round(bw * 0.034))
    title = ImageFont.truetype(FONT_FILE, round(bw * 0.050))
    body = ImageFont.truetype(REGULAR_FILE, round(bw * 0.046))
    top = iy - round(bw * 0.012)
    draw.text((tx, top), APP, font=small, fill=(130, 130, 135))
    draw.text((x0 + bw - pad, top), WHEN, font=small, fill=(130, 130, 135), anchor="ra")
    draw.text((tx, top + round(bw * 0.050)), TITLE, font=title, fill=(20, 20, 20))
    draw.text((tx, top + round(bw * 0.112)), BODY, font=body, fill=(70, 70, 75))
    return img, shadow


def offset(t):
    """How far the banner has come down: 0 = hidden above the frame, 1 = in place."""
    if t < START:
        return 0
    if t < START + DROP + HOLD:
        return ease_out_back((t - START) / DROP)
    return 1 - ease_in((t - START - DROP - HOLD) / DROP)


def ease_out_back(p):
    """0 -> 1 with a small overshoot past 1 before settling, so the banner lands with a little bounce."""
    p = min(max(p, 0), 1)
    return 1 + 2.2 * (p - 1) ** 3 + 1.2 * (p - 1) ** 2


def ease_in(p):
    p = min(max(p, 0), 1)
    return p * p


def overlay(t):
    img = Image.new("RGBA", (w, h))
    k = offset(t)
    if k > 0:
        rest = round(h * TOP) - margin
        hidden = -card.height
        img.alpha_composite(card, (round((w - card.width) / 2), round(hidden + (rest - hidden) * k)))
    return img


def probe(path):
    info = json.loads(subprocess.check_output(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries",
                                               "stream=width,height,r_frame_rate:format=duration", "-of", "json", path]))
    s = info["streams"][0]
    num, den = s["r_frame_rate"].split("/")
    return s["width"], s["height"], s["r_frame_rate"], float(num) / float(den), float(info["format"]["duration"])


def render(src, out):
    """Draw overlay(t) on every frame of src and save to out, keeping the audio."""
    ff = subprocess.Popen(["ffmpeg", "-y", "-v", "error", "-i", src,
                           "-f", "rawvideo", "-pix_fmt", "rgba", "-s", f"{w}x{h}", "-r", rate, "-i", "-",
                           "-filter_complex", "[0:v][1:v]overlay=shortest=1,format=yuv420p[v]",
                           "-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "18", "-c:a", "copy", out],
                          stdin=subprocess.PIPE)
    for i in range(math.ceil(duration * fps)):
        ff.stdin.write(overlay(i / fps).tobytes())
    ff.stdin.close()
    if ff.wait():
        sys.exit("ffmpeg failed")


src, out = sys.argv[1:3]
w, h, rate, fps, duration = probe(src)
card, margin = banner()
render(src, out)

Find 3x winning ads

Recharm cuts your ad footage into tagged, searchable clips: hooks, testimonials, product shots. Find the shots that win, add the effect with Claude, and ship 3x more ad edits.

Start 14-day free trial