JSFiddle - React, Tailwind, and code Playground

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="author" content="Script Tutorials" />
    <title>Whirling dropdown menu | Script Tutorials</title>
    <style>

        * {
            margin: 0;
            padding: 0;
        }
        html {
            background-color: #000;
            background: url('https://source.unsplash.com/random/1600x900') no-repeat center center fixed;
            background-size: cover;
            font-family: 'Arial', sans-serif;
        }
        .container {
            margin: 30px auto;
            width: 90%;
        }

        /* general styles */
        .menu, .menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .menu {
            height: 58px;
            backdrop-filter: blur(10px);
        }
        .menu li {
            background: rgba(255, 255, 255, 0.1);
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
            border-top: 2px solid rgba(255, 255, 255, 0.1);
            min-width: 160px;
            backdrop-filter: blur(10px);
        }
        .menu > li {
            display: block;
            float: left;
            position: relative;
            border-radius: 5px;
        }
        .menu > li:first-child {
            border-radius: 5px 0 0 5px;
        }
        .menu a {
            border-left: 3px solid rgba(0, 0, 0, 0);
            color: #f0f0f0;
            display: block;
            font-family: 'Lucida Console';
            font-size: 18px;
            line-height: 54px;
            padding: 0 25px;
            text-decoration: none;
            text-transform: uppercase;
        }

        /* onhover styles */
        .menu li:hover {
            background-color: rgba(255, 255, 255, 0.2);
            border-bottom: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid rgba(255, 255, 255, 0.3);
        }
        .menu li:hover > a {
            border-left: 3px solid...