JSFiddle - React, Tailwind, and code Playground

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Enhanced To-Do List</title>         
    
    <!-- Animation Styles -->
    <style>
        @keyframes fadeInOut { 
            0% { opacity: 0; transform: scale(0.9); } 
            50% { opacity: 1; transform: scale(1.2); } 
            100% { opacity: 0; transform: scale(0.9); } 
        }
        @keyframes flyInLeft { 
            from { transform: translateX(-100%); opacity: 0; } 
            to { transform: translateX(0); opacity: 1; } 
        }
        @keyframes flyInRight { 
            from { transform: translateX(100%); opacity: 0; } 
            to { transform: translateX(0); opacity: 1; } 
        }
        @keyframes scaleUp { 
            from { transform: scale(0.5); opacity: 0; } 
            to { transform: scale(1); opacity: 1; } 
        }
        @keyframes fadeIn { 
            from { opacity: 0; } 
            to { opacity: 1; } 
        }
        @keyframes slideDown {
            from { max-height: 0; opacity: 0; }
            to { max-height: 500px; opacity: 1; }
        }
        
        .smoothTransition { transition: all 0.3s ease; }
        .animFlyLeft { animation: flyInLeft 0.8s ease-out; }
        .animFlyRight { animation: flyInRight 0.8s ease-out; }
        .animScaleUp { animation: scaleUp 1s ease-in-out; }
        .animFadeIn { animation: fadeIn 0.5s ease-in; }
        .slideDown { animation: slideDown 0.5s ease-out; }
    </style>

    <!-- Button and Input Styles -->
    <style>
        * { box-sizing: border-box; }
        
        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        button, 
       ...