トップに戻るボタン
glassmorphism効果で設計されたレスポンシブなBack to Topボタンコンポーネントで、プロフェッショナルなビジネスWebサイトに適しています。最小限の要素を備えたシンプルなレイアウトが特徴で、明るいテーマと暗いテーマの両方でうまく機能します。
HTMLコード
<div class="fixed bottom-5 right-5">
<a href="#" class="bg-white bg-opacity-30 backdrop-blur-md border border-gray-200 dark:bg-gray-800 dark:bg-opacity-30 dark:border-gray-600 text-gray-800 dark:text-gray-200 rounded-full p-3 shadow-lg hover:shadow-2xl transition-transform transform hover:scale-110">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
</svg>
</a>
</div>