This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Initialization Option Assess API

scroll_to_top

When enabled, this allows Assess API to scroll to the top of the container when the user navigates to the next or previous item.

Note This feature has the same behavior as scroll_to_test, but triggers every time the user navigates between items.

Values

Request object key navigation.scroll_to_top

Default: true

This option can be initialized as one of the following types: boolean object.

  • Type boolean
    Enable scrolling to the top of the assessment container without any additional offset.
  • Type object
    • offset_top number

      Enable scrolling above top of the assessment container based on the offset.

      Note This setting is useful when having a custom header above the assessment container.

      Example: 10
Was this article helpful?