组件 Back to Top 按钮 Glassmorphism Rainbow 返回顶部农业按钮

Glassmorphism Rainbow 返回顶部农业按钮

一个复杂的、响应式的“Back to Top”按钮组件,具有玻璃形态设计和彩虹渐变,专为农业/农业网站量身定制。具有模糊效果和暗模式支持。

预览

HTML 代码

<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>

相关组件

返回页首按钮组件 - 粗野主义大地色调

一个复杂的“Back to Top”按钮组件,采用野兽派风格设计,采用朴实的配色方案,适用于博客/内容网站。它是响应式的,包括深色模式支持。

打开

Back to Top Button 组件

响应式“Back to Top”按钮,具有 Material Design 美学、单色配色方案和深色模式支持。它在右下角显示为浮动作按钮 (FAB)。

打开

返回页首按钮 - 粗野主义

用于投资组合的粗野派“Back to Top”按钮组件,具有三重配色方案和简单的设计。它是响应式的,并支持使用 Tailwind CSS 的深色模式。

打开