login form card with floating label and glowing button

How we can create an attractive login form card with a cool item’s effect? Solution: See this Login Form Card With Floating label And Glowing Button, Login UI.

Previously I have shared some login forms, but this one is a card type with floating labels and neon glowing buttons. Basically, a login form contains 2 inputs and a button, signup form contains many inputs and elements. And nowadays most of the websites use a card or box type element to place login form.

Today you will learn to create a login UI card design. Basically, there is a card that contains a login form with 2 inputs and a button. The first input is for email and the second one is for the password, and the button is to submit or log in. There 2 input have floating labels, when you will click on the input then the label will shift and goes upside. And the login button has a moving border and a neon glow effect on hover.

So, Today I am sharing Login Form Card With Floating label And Glowing Button. There I have used HTML to create the layout and CSS for styling and animations. I think this is a pretty cool and unique login form card that is ready to use. You can use this on your website for creating an attractive UI.

If you are thinking now how this login form card actually is, then see the preview given below.

Preview Of Login UI With Floating Label and Glowing Button

See this video preview to getting an idea of how this login form UI looks like.

Live Demo

Now you can see this program 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:

Login Form Card Source Code

Before sharing source code, let’s talk about it. First I have created the main div with class name ‘login-box’ and placed all the items inside it. Inside the main div, I have placed 2 div sections for 2 inputs. And for the submit button I have used hyperlink tag with multiple span. These spans created for moving line effect. Also in the HTML file, I have linked the CSS file.

Now using CSS I have placed all the items in the right place, as you can see in the preview. With CSS I gave basic values like size, position, margin, padding, etc to all the elements. I have used CSS :focus :valid selectors to create the floating label effect. I have used CSS @keyframe command to create the animation effects. And I have selected the spans separately using nth-child() command.

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

index.html

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

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

That’s It. Now you have successfully created Login Form Card With Floating label And Glowing Button, Login UI. If you have any doubt or question then comment down below.

Thanks For Visiting, Keep Visiting.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here