CSS Scroll Down Indicator

The little mouse with a scrolling wheel that tells visitors there is more below the hero.

  • scroll
  • mouse
  • hero
  • indicator
  • hint
  • animation
HTML
<a class="scroll-hint" href="#content" aria-label="Scroll to content"></a>
CSS
.scroll-hint {
  position: relative;
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
}

/* The wheel */
.scroll-hint::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #e2e8f0;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

.scroll-hint:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::before { animation: none; }
}

About this CSS Scroll Down Indicator

This CSS Scroll Down Indicator is 37 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, keyboard focus styles and reduced-motion support. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #e2e8f0
  • #38bdf8

How to use this scroll down indicator

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .scroll-hint class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback