Back to Top Button
Back to Top button for e-commerce, with a vibrant dark mode design.
HTML Code
<div class="fixed bottom-4 right-4 z-50">
<a href="#" class="bg-purple-600 dark:bg-purple-800 text-white dark:text-purple-200 p-4 rounded-full shadow-lg transition-all duration-300 transform hover:scale-110 focus:outline-none focus:ring-4 focus:ring-purple-500 focus:ring-opacity-50">
<svg class="w-6 h-6" 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>
</a>
</div>
Related Components
Back to Top Button Component
A responsive 'Back to Top' button component styled with Material Design principles, muted colors, and dark mode support, suitable for blog or content consumption websites.
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.
Back to Top Button Component - Brutalism Earth Tones
A complex 'Back to Top' button component designed in a brutalist style with an earthy color scheme, suitable for blog/content sites. It is responsive and includes dark mode support.