Back to Top

A floating button that scrolls the page back to the top.

AI Prompt
Create a Back to Top pattern for an AI-generated interface. It should help with a floating button that scrolls the page back to the top. Use a restrained black, white, and gray visual style, strong hierarchy, and product-grade spacing. The interaction should feel convenient, practical, and easy to scan.
Negative Prompt
Do not make the back to top flashy, noisy, over-animated, or decorative for its own sake. Avoid random glow, heavy gradients, excessive borders, oversized type, unclear hierarchy, and generic SaaS filler.
Tokens
{
  "id": "back-to-top",
  "category": "interactions",
  "trigger": "scroll down",
  "target": "back to top",
  "duration": "160ms",
  "easing": "ease-out",
  "feeling": [
    "convenient",
    "practical",
    "precise"
  ],
  "palette": [
    "black",
    "white",
    "gray"
  ]
}

Usage notes

Short guidance for humans and AI tools before copying the pattern.

Use Back to Top when you need a floating button that scrolls the page back to the top. It works best when the interface needs clarity before spectacle.

Do not make the back to top flashy, noisy, over-animated, or decorative for its own sake. Avoid random glow, heavy gradients, excessive borders, oversized type, unclear hierarchy, and generic SaaS filler.

Create a Back to Top pattern for an AI-generated interface. It should help with a floating button that scrolls the page back to the top. Use a restrained black, white, and gray visual style, strong hierarchy, and product-grade spacing. The interaction should feel convenient, practical, and easy to scan.