This website is the best viewed in bigger devices.

How To Design - Full Screen Menu


Learn how to create a Full Screen Menu with HTML, CSS.


basic form

How To Create a Full Screen Menu

Step 1) Add HTML

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Full Screen Menu</title>
    <link rel="icon" href="images/favicon.png" type="image/png" sizes="16x16">
    <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,400i,600,700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
</head>

<body>

    <nav class="navigation">
        <ul>
            <li><a href="#" data-text="Home">Home</a></li>
            <li><a href="#" data-text="About">About</a></li>
            <li><a href="#" data-text="Blog">Blog</a></li>
            <li><a href="#" data-text="Services">Services</a></li>
            <li><a href="#" data-text="Work">Work</a></li>
            <li><a href="#" data-text="Contact">Contact</a></li>
        </ul>
    </nav> 
    
</body>

</html>

Step 2) Add CSS:

/*

This is a Full Screen Menu using HTML and CSS. You can freely use it in your project.
It is made with ♥ by Learn Computer Academy. Visit our website: www.learncomputer.in

*/


/* Normalization */

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #000;
    line-height: 1.3;
    background-color: #fff;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    display: inline-block;
}

    
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.navigation ul {
    position: relative;
}

.navigation ul li {
    text-align: center;
    list-style: none;
}

.navigation ul li a {
    text-decoration: none;
    color: #333;
    font-size: 3em;
    padding: 5px 20px;
    display: inline-flex;
    font-weight: 700;
    transition: 0.5s;
}

.navigation ul:hover li a {
    color: #0002;
}

.navigation ul li:hover a {
    color: #000;
    background-color: #fff;
}

.navigation ul li a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 500px;
    transition: letter-spacing 0.5s, left 0.5s;
}

.navigation ul li a:hover::before {
    content: attr(data-text);
    opacity: 1;
    letter-spacing: 10px;
    left: 50%;
    width: 1800px;
    height: 1800px;
}

.navigation ul li:nth-child(6n+1) a::before {
    background-color: #81ecec;
}

.navigation ul li:nth-child(6n+2) a::before {
    background-color: #ff7675;
}

.navigation ul li:nth-child(6n+3) a::before {
    background-color: #55efc4;
}

.navigation ul li:nth-child(6n+4) a::before {
    background-color: #a29bfe;
}

.navigation ul li:nth-child(6n+5) a::before {
    background-color: #fd79a8;
}

.navigation ul li:nth-child(6n+6) a::before {
    background-color: #ffeaa7;
}