neumorphism login register form

How we can create a neumorphism login and register form using HTML CSS JS? Solution: See this Neumorphism Login/Register Form Design, Switch Between Two Forms.

Previously I have shared a neumorphism tab design, but this is a login and register form UI design. Basically, nowadays neumorphism designs are on-trend and it looks cool and futuristic, that’s why peoples using this design pattern. We can apply the design on many places like tab, accordions, dashboard, login-register form, etc. And this program is a combination of login and register form which switch on click with neumorphic design.

Today you will learn to create a switchable login and register form with neumorphic design. Basically, there are two types of forms one for sign in and one for sign up. And these two sections are divided in parts, one side has a login form and one side has a registration form. By default, you will see the form fields of registration, but when you will click on sign-in button then the from will slide and switch the section. When you will click on sign up again then it will slide again and show the section.

So, Today I am sharing Neumorphism Login/Register Form Design. There I have used HTML and CSS for creating and styling the program and JavaScript for functioning. There I have not used jQuery or any JS library, this is a pure javascript program. Then I have placed some SVG icons for social media presentation. The whole design is based on color and shadow combination, and its slide switch feature makes it cooler.

If you are thinking now how this Switch Between Forms program actually is, then see the preview given below.

Preview Of Sign In and Sign Up Form Interaction

See this video preview to getting an idea of how this neumorphism form design looks like.

Live Demo

Now you can see this visually, also you can see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

Neumorphism Login/Register Form Design Source Code

Before sharing source code, let’s talk about it. First I have created the main div with class name ‘main’ and placed two container divs inside it for two form sections. The first container div contains sign up form fields contents, and the second one contains Log in fields and other things. I have placed many inputs and divs to create the whole structure. Also in the HTML file, I have linked CSS and JavaScript files.

Now using CSS, first I have placed all the items in the right place, as you can see in the preview. There I gave width, height, margin, padding, etc values. This is only a prototype, that’s the it is not responsive. But you can create it by our own. I have used CSS Flex display :flex; to create the sturcture. Now box-shadow and background-color commands are responsible for neumorphic design. Also, I gave transition delay which is managed by JS.

JavaScript handling here the switch functions. This is pure JS, there I have not used any JS library like jQuery or any other else. JS fetching all the elements using document.querySelector command and storing in let. There is have used JS let attribute for storing data and executing functions. Used .classList.toggle command for toggle function.

Left all other things you will understand after getting the codes, I can’t explain all in writing. For creating the program you have to create 3 files. One for HTML, one for CSS, and one for JavaScript. Follow the steps to creating this program without any error/trouble.

index.html

Create an HTML file named ‘index.html‘ and put these codes given here.

6 COMMENTS

  1. Looks nice, but when I try to insert the Neumorphism code in middle of an existing page … the whole page is messed up. Doesn’t make any difference where I place the style css or the javascript.

    (page header html code here etc ..)

    “Neumorphism Login/Register Form Design | Switch Between Forms” code here

    (page footer html code here etc …)

    Any ideas?

  2. Greetings to you sir,I am glad to come across your source code for web development projects,I must commend you. The neumorphism form login project is not responding when I click for switching of forms. Please could you take a look at it to help debug it. waiting for your response, thanks.
    If anyone has fixed the bug, kindly let me how you did it please.

LEAVE A REPLY

Please enter your comment!
Please enter your name here