ProgMaster._.

CREATING MENU BAR IN 3MIN WITH STROKE FILL ON HOVER EFFECT WITH HTML.





This tutorial will guide you through CREATING MENU BAR IN 3MIN WITH STROKE FILL ON HOVER EFFECT WITH HTML. Follow all the given step :

Step 1 : Create Index.html and add given html code on it.
Step 2 : Create style.css and add given css code on it.
Step 3 : Create index.js and add given JavaScript code on it.

HTML


HTML Code for MENU BAR IN 3MIN WITH STROKE FILL ON HOVER EFFECT.



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Menubar</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="button-group">

        <button>
            <svg stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"
                      stroke-linejoin="round"
                      stroke-linecap="round">
                </path>
            </svg>
        </button>

        <button>
            <svg stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
                      stroke-linejoin="round"
                      stroke-linecap="round">
                </path>
            </svg>
        </button>

        <button>
            <svg stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M7.5 3.75H6A2.25 2.25 0 003.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0120.25 6v1.5m0 9V18A2.25 2.25 0 0118 20.25h-1.5m-9 0H6A2.25 2.25 0 013.75 18v-1.5M15 12a3 3 0 11-6 0 3 3 0 016 0z"
                      stroke-linejoin="round"
                      stroke-linecap="round">
                </path>
            </svg>
        </button>

    </div>
</body>
</html>



    


CSS


CSS Code MENU BAR IN 3MIN WITH STROKE FILL ON HOVER EFFECT.

    
body{
    margin: 0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #121212;
}
.button-group{
    display: flex;
    background: #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.button-group button{
    background: #2a2a2a;
    border: none;
    cursor: pointer;
    padding: 16px 24px;
    transition: all 0.4s ease;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.button-group button + button{
    border-left: 1px solid #333;
}
.button-group button:hover{
    color: #f7e479;
    background: #333;
    transform: translateY(-2px);
}
.button-group svg{
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    transition: all 0.4s ease;
}
.button-group button:hover svg{
    stroke: #f7e479;
    fill: #f7e47920;
    filter: drop-shadow(0 0 6px #f7e479);
}
.button-group button:active{
    transform: translateY(0);
    box-shadow: 0 0 10px #f7e479 inset;
}
    


Download Source Code



What is HTML

HTML, or HyperText Markup Language, is the standard markup language used to create and design documents on the World Wide Web. It's essentially the backbone of web pages, providing the structure and content that web browsers interpret and display.

HTML consists of a series of elements, which are enclosed by tags to define their purpose and function on a webpage. These elements can include headings, paragraphs, images, links, lists, forms, and more. By using a combination of HTML elements, web developers can organize and present information in a structured and visually appealing manner.

HTML is not a programming language but rather a markup language. This means it doesn't have the capability to perform calculations or execute complex logic like programming languages do. Instead, HTML focuses on describing the structure and content of a document, leaving the presentation and functionality to other technologies like CSS (Cascading Style Sheets) for styling and JavaScript for interactivity.

In summary, HTML serves as the foundation for building web pages, providing the structure and content necessary for browsers to render and display information to users on the internet.

What is CSS

CSS, or Cascading Style Sheets, is a language used to style the presentation of web documents written in HTML and XML. It provides a way to control the layout, colors, fonts, and other visual aspects of a webpage, enabling developers to create attractive and responsive designs. By separating content from presentation, CSS promotes cleaner code, easier maintenance, and greater flexibility in website design. With CSS, developers can achieve consistent branding, improved user experience, and better accessibility across various devices and screen sizes.

What is JavaScript

JavaScript is a versatile programming language used for creating dynamic and interactive web content. It enables developers to manipulate HTML elements, respond to user actions, and build seamless web applications. With its extensive ecosystem of libraries and frameworks, JavaScript powers both client-side and server-side development, making it an essential tool for modern web development.