组件 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 按钮,带有 Glassmorphism 设计和 Monochromatic 配色方案,适用于电子商务网站。

打开

Back to Top Button 组件

响应式“Back to Top”按钮组件,具有受纸张/印刷启发的设计、三重配色方案和复杂的视觉元素,适用于电子商务网站。包括深色模式支持。

打开

回到顶部按钮

一个最小且响应迅速的“Back to Top”按钮组件,支持深色模式。它在向下滚动后显示,并使用平滑滚动在单击时将用户返回到页面顶部。没有 JavaScript 用于滚动,只有 CSS。

打开