The screencast endpoint lets you generate short video captures of your webpage — either as a static animation (video) or a dynamic scroll-through (scroll). It’s great for showcasing your app, previewing a website, or generating media content programmatically.
webm
, mp4
, mov
, avi
mp4
mp4
is widely supported and recommended for general use.1
to 30
seconds5
video
, scroll
video
video
: A static screen recording, useful for animations, transitions, or video players.scroll
: Automatically scrolls the page down during recording, ideal for long-form content like blog posts.scroll
)
scroll_by_amount
1000
500
1500
true
800
linear
scroll
option, the animation simulates a natural reading or browsing experience:
scroll_by_amount
pixels.scroll_by_delay
milliseconds.scroll_by_duration
milliseconds for smoothness.scroll_back
is set to true, the page will pause for scroll_back_delay
milliseconds, then scroll back to the top in one smooth motion.scroll_easing
parameterscroll_easing
parameter is a powerful tool for controlling the feel of your scroll animations.,It allows you to choose how the scrolling motion behaves, making it more or less dynamic depending on your needs.
The scroll_easing
parameter affects each scroll step in the scroll
scenario, giving you fine control over the pacing and fluidity of the motion.
Why Easing Matters
A scroll that moves linearly feels robotic. Easing functions allow for acceleration and deceleration, creating a more human-like experience.
Available Easing Options
Easing | Description |
---|---|
linear | Constant speed from start to end. Feels mechanical. Good for technical demos or precise timing. |
ease_in_quad | Starts slow, speeds up. Feels like someone starting to scroll carefully, then accelerating. |
ease_out_quad | Starts fast, slows down. Great for attention-grabbing stops. |
ease_in_out_quad | Starts slow, speeds up, then slows down. Very natural. Ideal for most use cases. |
ease_in_cubic | Slower start with more punchy acceleration. A bit more dramatic than quad. |
ease_out_cubic | Strong start, smooth slow-down. Nice for relaxing endings. |
ease_in_out_cubic | Smooth acceleration and deceleration. Balanced and elegant. |
ease_in_quart | Very slow start, then rapid. Great if you want dramatic build-up. |
ease_out_quart | Fast start, very soft landing. Feels like gliding in. |
ease_in_out_quart | Cinema-style. High control with graceful motion. |
ease_in_quint | Extremely slow start and rapid acceleration. For stylized scrolls. |
ease_out_quint | Fast drop, featherlight finish. Perfect for premium UIs. |
ease_in_out_quint | Ultra-smooth and polished - high-end product demo feel. |