Basic Scroll GIF — Simple Scrolling Animation
Create a basic scrolling GIF animation of a web page with default settings. The simplest way to showcase page content in a single animated image.
Parameters
| Name | Value | Description |
|---|---|---|
| url | https://example.com | The page to animate |
cURL Example
curl -H "X-KEY: your-api-key" "https://api.scrnpix.com/animate?url=https://example.com" -o scroll.gif
SDK Example
import requests
response = requests.get(
"https://api.scrnpix.com/animate",
headers={"X-KEY": "your-api-key"},
params={"url": "https://example.com"}
)
with open("scroll.gif", "wb") as f:
f.write(response.content)Expected Output
| Content-Type | image/gif |
| Credit Cost | 3 credits |
| Notes | Cost depends on duration: Math.max(1, Math.ceil(frames * frameDelay / 1000)) |
Failure Modes
Page has no scrollable content
Symptom: GIF shows a static image with no scrolling
Fix: The page must have content that extends below the viewport. Use a taller viewport or a page with more content.
Animation is too fast or choppy
Symptom: Scroll moves in large jumps
Fix: Reduce scroll_by (default 80px) for smoother animation, or increase frame_delay for slower playback.
Frequently Asked Questions
What are the default animation settings?
Default viewport is 800x600, scroll_by is 80px per frame, frame_delay is 100ms, and max_frames is 30. These produce a smooth 3-second scroll animation.
How large are typical scroll GIF files?
GIF file sizes depend on page complexity and animation length. Typical scroll GIFs range from 500KB to 5MB. Simpler pages with fewer colors produce smaller files.
Ready to try this recipe?
Get your API key and run this recipe in seconds. Free tier includes 50 credits per month.
Get API Key