Components Back to Top Button Back to Top Button Component

Back to Top Button Component

A responsive 'Back to Top' button component designed for e-commerce, featuring a vibrant color scheme on a dark background. It includes a subtle hover effect and ensures visibility across all screen sizes with dark mode support.

Preview

HTML Code

<div class="fixed bottom-4 right-4 z-50">
  <a href="#top" class="group block p-3 rounded-full bg-gradient-to-br from-purple-600 to-indigo-500 shadow-lg transition-all duration-300 ease-in-out hover:from-purple-700 hover:to-indigo-600 focus:outline-none focus:ring-4 focus:ring-purple-300 dark:focus:ring-purple-800">
    <svg class="w-6 h-6 text-white transform transition-transform duration-300 ease-in-out group-hover:-translate-y-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 10l7-7m0 0l7 7m-7-7v18"></path>
    </svg>
    <span class="sr-only">Back to Top</span>
  </a>
</div>

Related Components

Back to Top Button

Back to Top button for e-commerce, with a vibrant dark mode design.

Open

Brutalist Back to Top Button

A brutalist back-to-top button in Tailwind CSS, with high contrast, bold typography and sharp edges. Includes responsive sizing and dark mode support.

Open

Retro_Back_To_Top_Button

Retro/Vintage - Nostalgic Back to Top Button Component for Blog/Content consumption with Analogous color scheme. Complex design with responsive and dark mode support.

Open