GitHub Stars Animation

Display GitHub stargazers with animated avatars and a countdown star counter. Perfect for hero sections and landing pages.

Open in v0~9.0 kB

Last updated: March 7, 2026

Installation

npx smoothui-cli add github-stars-animation

Features

  • Animated countdown from 0 to star count
  • Displays avatars of users who starred the repository
  • Staggered entrance animations for avatars
  • Fetches data from GitHub API or custom endpoint
  • Supports both client-side and server-side data fetching
  • Loading and error states
  • Perfect for hero sections and landing pages

Accessibility

Screen Reader

  • Each stargazer avatar link has an aria-label with the username for screen readers.
  • Avatar images include descriptive alt text.
  • The star count is displayed as plain text, readable by screen readers.
  • External profile links open in new tabs with secure rel attributes.

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the countdown animation is skipped (the final count is shown instantly), avatar entrance animations are disabled, and scale effects on hover are removed.

Props

On this page

Created by

Improved by

dev_wandry's avatar

Powered by

motion.dev
lucide.dev