lightswind
Version:
A modern frontend library with pre-built Tailwind CSS components for building responsive and interactive user interfaces.
42 lines (32 loc) • 1.8 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@codewith_muhilan</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://lightswind.com/tailwind.min.css">
</head>
<body class="flex items-center justify-center h-screen bg-gray-50">
<div class="flex flex-wrap justify-center items-center space-x-4 py-8">
<button
class="group relative inline-block px-8 py-3 text-white bg-indigo-600 rounded-md shadow-md overflow-hidden hover:bg-indigo-700 transition-all duration-300">
<span
class="absolute inset-0 w-full h-full bg-indigo-800 transform -translate-x-full group-hover:translate-x-0 transition-all duration-500 ease-in-out"></span>
<span class="relative z-10">Button 1</span>
</button>
<button
class="group relative inline-block px-8 py-3 text-white bg-primarylw-2 rounded-md shadow-md overflow-hidden hover:bg-primary transition-all duration-300">
<span
class="absolute inset-0 w-full h-full bg-primarylw transform -translate-x-full group-hover:translate-x-0 transition-all duration-500 ease-in-out"></span></span>
<span class="relative z-10">Button 2</span>
</button>
<button
class="group relative inline-block px-8 py-3 text-white bg-green-600 rounded-md shadow-md overflow-hidden hover:bg-green-700 transition-all duration-300">
<span
class="absolute inset-0 w-full h-full bg-green-800 transform -translate-x-full group-hover:translate-x-0 transition-all duration-500 ease-in-out"></span>
<span class="relative z-10">Button 3</span>
</button>
</div>
</body>
</html>