Components Back to Top Button Glassmorphism Rainbow Back to Top Button for Agriculture

Glassmorphism Rainbow Back to Top Button for Agriculture

A complex, responsive 'Back to Top' button component with a glassmorphism design and a rainbow gradient, tailored for agriculture/farming websites. Features blur effects and dark mode support.

Preview

HTML Code

<div class="fixed bottom-6 right-6 z-50">
  <!-- Button to scroll to top (actual JS functionality would be added for this) -->
  <button aria-label="Scroll to top" class="group relative overflow-hidden rounded-full p-0.5 focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-900 focus:ring-blue-500 transition-all duration-300 transform hover:scale-105 active:scale-95">
    <div class="absolute inset-0 bg-gradient-to-r from-red-500 via-yellow-500 to-green-500 opacity-75 group-hover:opacity-100 transition-opacity duration-300"></div>
    <div class="relative bg-white dark:bg-gray-800 backdrop-blur-md bg-opacity-20 dark:bg-opacity-20 rounded-full px-4 py-2 flex items-center justify-center space-x-2 border border-white border-opacity-30 dark:border-gray-700 dark:border-opacity-30 shadow-lg">
      <svg class="h-6 w-6 text-gray-800 dark:text-gray-100 group-hover:text-white transition-colors duration-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 10l7-7m0 0l7 7m-7-7v18" />
      </svg>
      <span class="hidden sm:inline text-sm font-semibold text-gray-800 dark:text-gray-100 group-hover:text-white transition-colors duration-300">
        To the Fields!
      </span>
    </div>
  </button>
</div>

Related Components

Back to Top Button Component

A responsive 'Back to Top' button with microinteraction-focused animations, triadic color scheme, and dark theme support, suitable for a portfolio.

Open

Back to Top Button Component

A responsive, visually appealing 'Back to Top' button with a triadic color scheme, gradient, and smooth transitions, suitable for a portfolio site, including dark mode support.

Open

Back to Top Button Component

A responsive 'Back to Top' button with Material Design aesthetics, monochromatic color scheme, and dark mode support. It appears as a floating action button (FAB) in the bottom-right corner.

Open