Back to Docs
Interaction

scroll-to

Scroll the specified element into view with smooth scrolling.

Usage

$ cdpilot scroll-to <selector>

Arguments

NameRequiredDescription
selectorrequiredCSS selector of the element to scroll to

Examples

Scroll to the footer element

$ npx cdpilot scroll-to "#footer"