Stand with Ukraine 🇺🇦

Sticky Scroll-to-Top Button Macro for Confluence Cloud

Sticky Scroll-to-Top Button - Add a floating scroll-to-top arrow button in pages. Always visible, lightweight, and improves naviga... - Preview 2
Sticky Scroll-to-Top Button - Add a floating scroll-to-top arrow button in pages. Always visible, lightweight, and improves naviga... - Preview 3
navigation

This macro adds a lightweight floating arrow button to Confluence Cloud pages.

This button remains visible in the lower-right corner of the page, allowing users to instantly jump back to the top of long documents with a single click.

It is styled as a circular arrow with a customizable background, border, and subtle Confluence-friendly colors to ensure seamless integration with existing themes.

Key benefits include:

• Faster navigation for long articles, knowledge bases, or wikis

• Improved user experience and accessibility

• Minimalist design that doesn’t clutter the page

The button is built with simple Velocity and inline styling, making it easy to use and compatible across Confluence Cloud environments. No external scripts or heavy assets are required.

This solution is ideal for teams managing large technical manuals, documentation, or long knowledge base pages where scrolling back to the top can be time-consuming.

✅ Requires the User Macro for Confluence Cloud app.

Try for free

Template

## Background color
#set($bg = "var(--ds-surface, #FFFFFF)")

## Width
#set($width = "2em")

## Positioning
#set($top = "91.5%")
#set($right = "6%")

<div class="aui-dialog2 aui-layer"
     style="
       top: $top;
       height: 80em;
       right: $right;
       display: block;
       visibility: hidden;
       z-index: 10;
     ">
  <div style="
        padding: 0.4em;
        float: right;
        width: $width;
        background-color: $bg;
        height: auto;
        visibility: visible;
        overflow: hidden;
      ">
    <a href="#top"
       style="
         z-index: 9999;
         text-decoration: none;
         color: var(--ds-text-subtle, #44546F);
         line-height: 32px;
         text-transform: none;
         border: 1px solid grey;
         outline: none;
         border-radius: 50%;
         display: inline-block;
         width: 32px;
         height: 32px;
         text-align: center;
         font-size: 16px;
       ">
      ↑
    </a>
  </div>
</div>

Chosen by Top Global Companies Across Diverse Industries

BNP Paribas
Census
CNES
EDP
HHMI
HP
Hyundai
Index
Intercars
Melia
BNP Paribas
Census
CNES
EDP
HHMI
HP
Hyundai
Index
Intercars
Melia
Ministry
NVIDIA
PayPay
Pfizer
Qualcomm
Rail Canada
Red Cross
SEC
Space Institute
Telefonica
Ministry
NVIDIA
PayPay
Pfizer
Qualcomm
Rail Canada
Red Cross
SEC
Space Institute
Telefonica

Got Questions?

Fill out the form, and we'll guide you through every step of the way