Components Back to Top Button Back to Top Button Component

Back to Top Button Component

A 'back to top' button for CRM/Business Tools, designed in a Bauhaus style with high-contrast colors, featuring geometric forms and responsiveness for all screen sizes, including dark mode support.

Preview

HTML Code

<div class="fixed bottom-4 right-4 z-50">
  <!-- Outer square container for Bauhaus aesthetic -->
  <a href="#" class="group block w-14 h-14 md:w-16 md:h-16 lg:w-20 lg:h-20 bg-blue-600 dark:bg-yellow-400 p-1 md:p-2 lg:p-3 relative overflow-hidden transition-all duration-300 ease-in-out hover:scale-110 active:scale-95 shadow-lg dark:shadow-yellow-800/50">
    <!-- Inner square acts as a focus element, rotates on hover -->
    <div class="w-full h-full bg-red-600 dark:bg-black flex items-center justify-center transform transition-transform duration-300 ease-in-out group-hover:rotate-45">
      <!-- Arrow Icon - Simple geometric shapes -->
      <svg class="w-8 h-8 md:w-10 md:h-10 text-white dark:text-blue-600 transform -rotate-90 group-hover:scale-125 transition-transform duration-300 ease-in-out" 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>
    </div>
    <span class="sr-only">Back to Top</span>
  </a>
</div>

Related Components

Back to Top Button Component

A responsive 'Back to Top' button component for e-commerce sites, featuring a black and white monochrome design with a bright accent color, and an engaging microinteraction on hover. Includes dark mode support.

Open

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.

Open

Neumorphic Back to Top Button

A neumorphic "Back to Top" button for e-commerce, offering a subtle, soft UI design that blends with the background using delicate shadows. It features analogous colors for a harmonious look, a simple layout, and responsive design with dark theme support, ideal for online shopping experiences.

Open