Skip to content
shotsmith
Features Docs Guides Pricing Changelog Sign inStart free

Make scrolling website videos for marketing

Record smooth scrolling MP4s and GIFs of landing pages for product listings, portfolios, social posts and sales decks.

5 min read

A still screenshot shows the top of a landing page. A smooth scrolling video shows the whole story: hero, features, social proof, pricing. That’s why scrolling videos work so well in app store listings, portfolios, product launches, sales decks and social posts. Recording them by hand means a screen recorder, steady scrolling and editing. shotsmith does it in one request.

Record a video

Call /v1/animate with a URL. By default you get a 5-second MP4 that scrolls down the page and back up with a smooth ease-in-out curve:

// npm install @shotsmith/sdk
import { Shotsmith, AnimateOptions } from '@shotsmith/sdk';
import { writeFile } from 'node:fs/promises';

const shotsmith = new Shotsmith({
  accessKey: 'YOUR_ACCESS_KEY',
});

const options = AnimateOptions.url('https://shotsmith.dev/sample')
  .format('mp4')
  .duration(8)
  .blockCookieBanners();

await writeFile('capture.mp4', await shotsmith.animate(options));
<?php

// composer require shotsmith/shotsmith-php
require 'vendor/autoload.php';

use Shotsmith\Client;
use Shotsmith\Options\AnimateOptions;

$shotsmith = new Client('YOUR_ACCESS_KEY');

$options = AnimateOptions::url('https://shotsmith.dev/sample')
    ->format('mp4')
    ->duration(8)
    ->blockCookieBanners();

file_put_contents('capture.mp4', $shotsmith->animate($options));

// In Laravel: Shotsmith::take($options) with SHOTSMITH_ACCESS_KEY in .env
curl -G "https://shotsmith.dev/v1/animate" \
  --data-urlencode "access_key=YOUR_ACCESS_KEY" \
  --data-urlencode "url=https://shotsmith.dev/sample" \
  --data-urlencode "format=mp4" \
  --data-urlencode "duration=8" \
  --data-urlencode "block_cookie_banners=true" \
  -o capture.mp4
import { writeFile } from 'node:fs/promises';

const params = new URLSearchParams({
  access_key: 'YOUR_ACCESS_KEY',
  url: 'https://shotsmith.dev/sample',
  format: 'mp4',
  duration: '8',
  block_cookie_banners: 'true',
});

const res = await fetch(`https://shotsmith.dev/v1/animate?${params}`);
if (!res.ok) throw new Error((await res.json()).error_message);

await writeFile('capture.mp4', Buffer.from(await res.arrayBuffer()));
import urllib.request
from urllib.parse import urlencode

params = {
    "access_key": "YOUR_ACCESS_KEY",
    "url": "https://shotsmith.dev/sample",
    "format": "mp4",
    "duration": "8",
    "block_cookie_banners": "true"
}

url = "https://shotsmith.dev/v1/animate?" + urlencode(params, doseq=True)

# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(url, timeout=120) as res, open("capture.mp4", "wb") as f:
    f.write(res.read())
<?php

$query = http_build_query([
    'access_key' => 'YOUR_ACCESS_KEY',
    'url' => 'https://shotsmith.dev/sample',
    'format' => 'mp4',
    'duration' => '8',
    'block_cookie_banners' => 'true',
], '', '&', PHP_QUERY_RFC3986);

$ch = curl_init('https://shotsmith.dev/v1/animate?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status !== 200) {
    throw new RuntimeException(json_decode($body, true)['error_message'] ?? "HTTP {$status}");
}

file_put_contents('capture.mp4', $body);
package main

import (
	"io"
	"net/http"
	"os"
)

func main() {
	res, err := http.Get("https://shotsmith.dev/v1/animate?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&format=mp4&duration=8&block_cookie_banners=true")
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	if res.StatusCode != http.StatusOK {
		body, _ := io.ReadAll(res.Body)
		panic(string(body))
	}

	out, err := os.Create("capture.mp4")
	if err != nil {
		panic(err)
	}
	defer out.Close()
	io.Copy(out, res.Body)
}
require "net/http"
require "uri"

uri = URI("https://shotsmith.dev/v1/animate")
uri.query = URI.encode_www_form([
  ["access_key", "YOUR_ACCESS_KEY"],
  ["url", "https://shotsmith.dev/sample"],
  ["format", "mp4"],
  ["duration", "8"],
  ["block_cookie_banners", "true"]
])

res = Net::HTTP.get_response(uri)
raise res.body unless res.is_a?(Net::HTTPSuccess)

File.binwrite("capture.mp4", res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;

public class Capture {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var request = HttpRequest.newBuilder(URI.create(
            "https://shotsmith.dev/v1/animate?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&format=mp4&duration=8&block_cookie_banners=true"
        )).build();

        var res = client.send(request, HttpResponse.BodyHandlers.ofFile(Path.of("capture.mp4")));
        if (res.statusCode() != 200) {
            throw new RuntimeException("HTTP " + res.statusCode());
        }
    }
}
using System;
using System.IO;
using System.Net.Http;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };

// Throws HttpRequestException on a 4xx/5xx response
var bytes = await http.GetByteArrayAsync(
    "https://shotsmith.dev/v1/animate?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&format=mp4&duration=8&block_cookie_banners=true"
);

await File.WriteAllBytesAsync("capture.mp4", bytes);

Shape the motion

  • duration sets the length, up to 30 seconds. Up to 10 seconds comes back in the response; longer videos need async=true, because recording and encoding take longer than a synchronous request allows.
  • scroll_easing picks the curve: ease_in_out_quint (the default) feels the most natural; linear scrolls at constant speed.
  • scroll_back=false stops at the bottom instead of returning to the top: good for ending on a call to action.
  • scenario=default records without scrolling, for pages with their own animation.

Pick the right format

FormatBest for
mp4Almost everything: websites, social, decks. Small files, plays everywhere.
webmWeb pages where you want the smallest file. Slower to encode, so prefer async.
gifEmails and READMEs, where video won’t play. Much larger files; keep them short.
movEditing in Final Cut or Keynote.

Make it look polished

  • Phone videos: add viewport_device=iphone_15_pro for a mobile recording, perfect for app store previews.
  • Sharper: device_scale_factor=2 records at Retina resolution.
  • Clean: block_cookie_banners, block_chats and hide_selectors keep pop-ups out of the shot.
  • Dark mode: dark_mode=true for sites that support it.

Embed it on a page

<video src="/media/landing-scroll.mp4" autoplay muted loop playsinline width="640"></video>

muted and playsinline are required for autoplay on mobile browsers. Store the video rather than rendering it on every visit, since each recording uses a render.