Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring"Ready when you are. Start your free trial today."The message in the bar.
actionScrollBarActionDEFAULT_ACTIONThe button in the bar.
showAfternumber320How many pixels the visitor scrolls before the bar slides in.
hideNearEndbooleantrueHide 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.
dismissiblebooleantrueShow a dismiss button.
dismissLabelstring"Dismiss"Hidden label of the dismiss button.
progressbooleantrueShow 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.
storageKeystring""When set, a dismissal is remembered for the session under this key.
onDismiss() => voidNoneCalled when the visitor dismisses the bar.
labelstring"Offer"Accessible name of the region.
classNamestringNone

Related