studio_scroll
Scrolls to an absolute vertical offset or until a target element is in view, with cubic easing. Use this to reveal off-screen content before other actions.
Instructions
Cubic-eased scroll to an absolute Y offset or until a target element is in view — never a jump cut. Use between story beats to bring the next area on camera. Side effect: changes only the page scroll position (no click, no navigation). Pass exactly ONE of to_y or to_target. Returns 'scrolled' on completion. To reveal an off-screen element before studio_click or studio_highlight, scroll to it first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_y | No | Absolute vertical offset from the top of the page, in pixels (≥0). Use this OR to_target, not both. Example: 1200. | |
| to_target | No | CSS selector to bring into view (scrolled toward center). Use this OR to_y. Example: '#pricing' or 'section.features'. | |
| duration_ms | No | Scroll animation length in milliseconds. Optional; default 1300. Larger = calmer, slower glide (e.g. 2000); smaller = snappier. |