Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Floating Action Button</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 h-screen relative"> <!-- FAB Positioned Bottom Right --> <button class="fixed bottom-10 right-10 h-18 w-18 bg-indigo-600 text-white rounded-3xl shadow-[0_20px_40px_-10px_rgba(79,70,229,0.5)] flex items-center justify-center hover:bg-slate-900 hover:-translate-y-2 transition-all active:translate-y-0 active:scale-90 cursor-pointer group"> <svg class="h-8 w-8 transition-transform group-hover:rotate-90" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M12 4v16m8-8H4" /> </svg> </button> <div class="flex items-center justify-center h-full text-slate-300 font-black uppercase tracking-widest text-xs"> Look at the bottom right corner. </div> </body> </html>