JSFiddle - React, Tailwind, and code Playground

HTML

<nav class="desktopnav">
        <ul>
            <section class="dropdown">
                    <a href="#"> Home</a>
                <section class="dropdown-content">
                    <li><a href="#">Contact</a></li>
                    <li><a href="#">Events</a></li>
                    <li><a href="#">Manifesto</a></li>
                </section>
            </section>
        </ul>
    </nav>

CSS

a {
    text-decoration: none;
}
.desktopnav {
    right: 25px; 
    top: 25px;
    position: fixed;
    font-family: hitroad;
    text-transform: uppercase;
    font-size: 25px;
    z-index: 999;
    
    transition:0.4s;
}
.desktopnav>ul>.dropdown {
    padding: 8px 15px 8px 15px;
    background-color: white;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    transition:0.4s;
    white-space: nowrap;
}
.desktopnav>ul>.dropdown>.dropdown-content {
    max-width: 0;
    float: left;
    transition: all 0.4s linear;
    white-space: nowrap;
    overflow: hidden;
}
.desktopnav>ul>.dropdown>.dropdown-content>li {
    display: inline-block;
    padding-right: 20px;
    margin-top: 2px;
}
.desktopnav>ul>.dropdown:hover .dropdown-content {
    max-width: 1000px;
}
.desktopnav>ul>.dropdown>a, .dropdown-content>li>a {
    color: black;
    transition:0.4s;
}