Scroll Bar
A slim call-to-action bar that springs up at the bottom of the page after a set scroll distance, shows scroll progress along its top edge, hides near the end of the page and can be dismissed.
pixikit.com/docs/blocks/cta/scroll-bar
Customize
Show after320px
Hide near end
Scroll target
Dismissible
Progress
Position
Props
13| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Ready when you are. Start your free trial today." | The message in the bar. |
action | ScrollBarAction | DEFAULT_ACTION | The button in the bar. |
showAfter | number | 320 | How many pixels the visitor scrolls before the bar slides in. |
hideNearEnd | boolean | true | Hide the bar again near the end of the scroll range, so it does not cover a footer. |
scrollTarget | "window" | "parent" | "window" | Which scroll position the bar follows: the page, or the nearest scrolling ancestor. |
dismissible | boolean | true | Show a dismiss button. |
dismissLabel | string | "Dismiss" | Hidden label of the dismiss button. |
progress | boolean | true | Show a thin line along the top edge that fills as the page is scrolled. |
position | "center" | "full" | "center" | A floating pill at the centre, or a bar edge to edge. |
storageKey | string | "" | When set, a dismissal is remembered for the session under this key. |
onDismiss | () => void | None | Called when the visitor dismisses the bar. |
label | string | "Offer" | Accessible name of the region. |
className | string | None |