구성 요소 맨 위로 이동 버튼 맨 위로 이동 버튼 구성 요소

맨 위로 이동 버튼 구성 요소

음식/레스토랑 웹사이트를 위해 디자인된 단순하고 예술적인 'Back to Top' 버튼은 수채화에서 영감을 받은 그레이스케일 미학을 특징으로 합니다. 반응이 빠르고 다크 모드를 지원합니다.

미리 보기

HTML 코드

<a href="#" aria-label="Back to top" class="fixed bottom-4 right-4 md:bottom-8 md:right-8 z-50 group focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900 dark:focus:ring-gray-100">
  <div class="relative w-14 h-14 md:w-16 md:h-16 rounded-full overflow-hidden shadow-lg transform transition-all duration-300 group-hover:scale-110 group-active:scale-95 border-2 border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800">
    <!-- Artistic background layer -->
    <div class="absolute inset-0 bg-gradient-to-br from-gray-100 to-gray-300 dark:from-gray-700 dark:to-gray-900 opacity-70 group-hover:opacity-90 transition-opacity duration-300">
      <!-- Example of a subtle watercolor texture effect (can be replaced with actual SVG or background image for more detail) -->
      <svg class="absolute inset-0 w-full h-full opacity-30 group-hover:opacity-50 transition-opacity duration-300" viewBox="0 0 100 100" preserveAspectRatio="none">
        <defs>
          <filter id="watercolorFilter" x="-50%" y="-50%" width="200%" height="200%">
            <feTurbulence type="fractalNoise" baseFrequency="0.05" numOctaves="3" result="noise" />
            <feDiffuseLighting in="noise" lighting-color="white" surfaceScale="2" result="light" />
            <feBlend in="SourceGraphic" in2="light" mode="overlay" />
          </filter>
        </defs>
        <rect width="100" height="100" fill="#fff" filter="url(#watercolorFilter)" class="dark:fill-gray-900"/>
      </svg>
    </div>
    <div class="absolute inset-0 flex items-center justify-center">
      <svg class="w-8 h-8 md:w-9 md:h-9 text-gray-700 dark:text-gray-300 transform transition-transform duration-300 group-hover:-translate-y-1 group-active:translate-y-0" 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>
  </div>
</a>

관련 구성 요소

브루탈리스트 맨 위로

회색조와 Tailwind CSS를 사용하는 브루탈리즘 Back to Top 버튼 컴포넌트입니다. 반응이 빠르며 다크 모드를 지원합니다.

열다

Retro_Back_To_Top_Button

Retro/Vintage - 향수를 불러일으키는 Back to Top 버튼 구성 요소는 유사한 색 구성표로 블로그/콘텐츠 소비를 위한 구성 요소입니다. 반응형 및 다크 모드를 지원하는 복잡한 디자인.

열다

맨 위로 이동 버튼 구성 요소

마이크로 인터랙션에 초점을 맞춘 애니메이션, 트라이어딕 색 구성표 및 어두운 테마 지원이 포함된 반응형 'Back to Top' 버튼은 포트폴리오에 적합합니다.

열다