아르 데코 맨 위로 이동 버튼
아르데코에서 영감을 받은 복잡한 'Back to Top' 버튼 구성 요소는 기하학적 패턴과 고급스러운 Ocean/Blue 톤으로 비영리 / 자선 웹 사이트를 위해 설계되었습니다. 반응형 디자인과 다크 모드 지원이 포함됩니다.
HTML 코드
<div class="relative min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800 p-8 flex flex-col justify-end items-center font-serif">
<!-- Simulate scrollable content -->
<div class="absolute inset-0 overflow-auto z-0">
<div class="h-[2000px] w-full p-8 text-center text-blue-950 dark:text-gray-100">
<p class="mb-8 text-3xl font-bold">Scroll down to see the 'Back to Top' button emerge!</p>
<p class="text-lg leading-relaxed max-w-2xl mx-auto mb-12">
This area simulates a long page content for a non-profit organization.
Imagine stories of impact, charity events, and donation appeals.
Our mission is to bring light to those in need, echoing the profound depths
and calming expanse of the ocean. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
<!-- Back to Top Button Wrapper (hidden by default, would be controlled by JS for scroll threshold) -->
<div class="fixed bottom-8 right-8 z-50 animate-fade-in-up md:bottom-12 md:right-12 lg:bottom-16 lg:right-16">
<a href="#top" class="group block w-20 h-20 md:w-24 md:h-24 lg:w-28 lg:h-28 relative overflow-hidden
bg-gradient-to-br from-blue-400 to-indigo-600 dark:from-blue-700 dark:to-indigo-900
rounded-full shadow-lg hover:shadow-xl transition-all duration-300 ease-in-out
transform hover:scale-105 active:scale-95
border-4 border-blue-200 dark:border-blue-950">
<!-- Art Deco Geometric Pattern Overlay -->
<div class="absolute inset-0 rounded-full overflow-hidden">
<div class="absolute inset-0 bg-blue-300 opacity-20 dark:bg-blue-900 dark:opacity-30"></div>
<div class="absolute w-full h-full
before:content-[''] before:absolute before:inset-0 before:bg-[repeating-linear-gradient(45deg,_transparent_0,_transparent_5px,_rgba(255,255,255,0.1)_5px,_rgba(255,255,255,0.1)_10px)] dark:before:bg-[repeating-linear-gradient(45deg,_transparent_0,_transparent_5px,_rgba(0,0,0,0.1)_5px,_rgba(0,0,0,0.1)_10px)]
after:content-[''] after:absolute after:inset-0 after:bg-[repeating-linear-gradient(-45deg,_transparent_0,_transparent_5px,_rgba(255,255,255,0.1)_5px,_rgba(255,255,255,0.1)_10px)] dark:after:bg-[repeating-linear-gradient(-45deg,_transparent_0,_transparent_5px,_rgba(0,0,0,0.1)_5px,_rgba(0,0,0,0.1)_10px)]
"></div>
<div class="absolute inset-0 bg-gradient-to-tr from-transparent via-blue-500/20 to-transparent
dark:via-blue-400/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
</div>
<!-- Arrow Icon (SVG for crispness) -->
<svg class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-10 h-10 md:w-12 md:h-12 lg:w-14 lg:h-14
text-white group-hover:text-blue-50 dark:text-gray-100 dark:group-hover:text-amber-200
transition-colors duration-300 ease-in-out animate-bounce-y
group-hover:animate-none" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18" />
</svg>
<!-- Subtle border glow effect on hover -->
<div class="absolute inset-0 rounded-full border-4 border-transparent
group-hover:border-blue-50 dark:group-hover:border-amber-200
transition-colors duration-300 opacity-0 group-hover:opacity-100"></div>
<!-- Decorative elements -->
<div class="absolute top-2 left-2 w-4 h-4 rounded-full bg-blue-100/30 dark:bg-amber-100/30 blur-sm"></div>
<div class="absolute bottom-2 right-2 w-3 h-3 rounded-full bg-blue-200/30 dark:bg-amber-200/30 blur-sm"></div>
</a>
</div>
<!-- Keyframes for animation -->
<style>
@keyframes fade-in-up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
animation: fade-in-up 0.5s ease-out forwards;
}
@keyframes bounce-y {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
.animate-bounce-y {
animation: bounce-y 1.5s infinite;
}
</style>
</div>
관련 구성 요소
Neumorphic 맨 위로 돌아가기 버튼
전자 상거래를 위한 뉴모픽 "Back to Top" 버튼은 섬세한 그림자를 사용하여 배경과 조화를 이루는 미묘하고 부드러운 UI 디자인을 제공합니다. 조화로운 모양을 위한 유사한 색상, 단순한 레이아웃, 어두운 테마를 지원하는 반응형 디자인이 특징이며 온라인 쇼핑 경험에 이상적입니다.
아르 데코 맨 위로 이동 버튼
아르데코 디자인의 'Back to Top' 버튼 구성 요소로, 기하학적 패턴과 따뜻한 일몰 색상이 특징이며 데이트/소셜 플랫폼에 적합합니다. 여기에는 풍부한 대화형 스타일이 포함되어 있으며 다크 모드를 지원합니다.
Retro_Back_To_Top_Button
Retro/Vintage - 향수를 불러일으키는 Back to Top 버튼 구성 요소는 유사한 색 구성표로 블로그/콘텐츠 소비를 위한 구성 요소입니다. 반응형 및 다크 모드를 지원하는 복잡한 디자인.