Neumorphic Round Checkbox Using HTML and CSS (Free Source Code)

Neumorphic Round Checkbox Using HTML and CSS presents a contemporary method of form elements through gentle shadows combined with gentle highlight effects.

The free source code I offer supports good programming practices to simplify its integration into junior or advanced projects. The checkbox design provides beginners with an excellent coding solution to experience neumorphism while maintaining an optimal codebase efficiency.

Your pages achieve greater interactivity because this design blends with UI elements, web components and Open-Source UI libraries.

GitHub Source:

Features of Neumorphic Round Checkbox

  • Easy Customization: Colors, sizes, and shadows can be adjusted to fit any design style.
  • Realistic Shadows: Mimics a 3D surface with soft highlights and depth.
  • Smooth Hover Effects: Delivers gentle transitions to enhance user interaction.
  • Lightweight Code: Uses only HTML and CSS, ensuring minimal impact on load times.

Technologies Used

  • HTML (Hypertext Markup Language)
  • CSS (Cascading Style Sheets)

Recommended for You

Steps to Build Website Checkbox

Add the checkbox element and label container to your HTML code after which add neumorphic styling code with shadows and transitions in your stylesheet. You will find the HTML and CSS code directly below which you can insert in your project codebase.

HTML

Here is the HTML code for your index.html file:

<!DOCTYPE html>
<!-- Developed by Shokat Javed available at www.jvcodes.com -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neumorphic Round Checkbox - JV Codes</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <label class="container">
        <input type="checkbox" checked="checked">
        <div class="checkmark">
            <svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512">
                <title>Checkmark</title>
                <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path>
            </svg>
        </div>
    </label>
</body>
</html>

CSS

Here is the complete code for style.css file to style the checkbox:

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #383838; 
  }
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  display: none;
  color: white;
}

.container {
  --size: 60px;
  width: var(--size);
  display: block;
  height: var(--size);
  background-color: #191A1E;
  border-radius: 100%;
  cursor: pointer;
  padding: 5px;
  color: white;
  box-shadow: 1.5px 1.5px 3px #0e0e0e, -1.5px -1.5px 3px rgb(95 94 94 / 25%), inset 0px 0px 0px #0e0e0e, inset 0px -0px 0px #5f5e5e;
}

.container .checkmark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 1.5px 1.5px 3px #0e0e0e, -1.5px -1.5px 3px rgb(95 94 94 / 25%), inset 0px 0px 0px #0e0e0e, inset 0px -0px 0px #5f5e5e;
  transition: all ease 0.3s;
  padding: 0px;
}

.container .checkmark svg {
  opacity: 0;
  transition: all ease 0.3s;
}

.container input:checked + .checkmark {
  box-shadow: 0px 0px 0px #0e0e0e, 0px 0px 0px rgb(95 94 94 / 25%), inset 1.5px 1.5px 3px #0e0e0e, inset -1.5px -1.5px 3px #5f5e5e;
}

.container input:checked + .checkmark svg {
  opacity: 1;
}

Download Source Code

Access this free source code through the provided button below without any copyright limitations.

Conclusion

Your websites can boost user engagement while improving your portfolio by adding Neumorphic Round Checkboxes using HTML and CSS. Your support through backlinking with our JV Source Codes enables us to sustain our operations while YouTube subscription enables you to obtain additional content.

The other UI elements, forms, cards, galleries, menus, footer and hero section are available for your review. Your questions about using the Neumorphic Round Checkbox can be addressed through comments on this page and I will reply quickly.

Download JV Source Codes

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *