Black Friday: 25% off the shop.

Shop now

Sticky announcement bar

The bar above stays pinned while you scroll. Dismiss it and, with session memory on, it stays hidden for this browser tab session.

Black Friday: 15% off last year's offer.

Shop now

page content

Scroll to see the bar stay in place. This paragraph is filler text written for the demo only.

A shopfront usually has product grids, reviews and shipping notes here. The announcement bar reserves its own height in normal flow, so the page below it does not jump when scripts load.

Keep scrolling. The bar is a normal link and a normal button, so keyboard users can reach both with Tab.

More filler. The offer, the date and the destination link are plain HTML you can edit.

Even more filler to make the page tall enough to scroll on a phone and a desktop display.

The end of the page.