Hello readers, Today in this blog you'll learn how to create an Animated Login Form with Password Show or Hide Button using HTML CSS & JavaScript. Earlier I have shared an Amazing Transparent Login Form. Now, it's time to create this Animated Login Form with Password Show Hide Button.
As you know, A login form is a set of credentials used to authenticate the user before login into your website. Most often, these consist of a username and password.
In the image, you can see this is an Animated Login Form with a gradient background. Basically, in the image, there is not show password show or hide button. But when you entered some texts in the password field then the password show hide button will appear. I created those two login buttons of Facebook and Google plus is only for design. There is no action when you click on that button.If you're feeling difficult to understand what I am saying. You can watch a full video tutorial on this program (Animated Login Form).
Video Tutorial of Animated Login Form Design
If you're a beginner you can use this Login Form in your project and websites. I believe this login form code will help you a lot. Or if you have some knowledge of JavaScript or PHP you can add some functions in this format and use it according to your requirements.
You might like this:
Animated Login Form HTML & CSS [Source Codes]
As always, before sharing the codes of this program (Animated Login Form). Let's a few talk about the main tags and codes of this program. In the HTML File, First I created a <div> with the class name "container" and placed all other tags inside it. Then I created a <form> tag.After that, I created another <div> with the class name "input-field" and placed two tags inside it one is <input> tag and another is <label>. And, I used a label tag to show username text. Then I copy and paste that "input-field" div tag to create a password field. After that, I created a <button> tag. The <button> tag defines a clickable button.
In the CSS File, First I reset default margins and padding to 0; Then I placed all elements at the center using Flex property. Then I put a gradient background image in the background. After that, I did basic styling to the container, inputs, and button. In the video you have seen, I used :focus pseudo-class for a slide up the label text. In the HTML File, for a button, I created a <div> with the class name "inner" for creating duplicate gradient layer. Then I did styling to button in the CSS File, to create that gradient hovers animation.
To create this program (Animated Login Form). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste these following codes in your file. You can also download the source code files through the given link. In the source files, there you also get a background image of this program. Click here to download source code files.
HTML FILE:
CSS FILE:

Nice!!!
ReplyDeleteThanks bro
DeleteThank you so much for gifting us with such beautiful work I have learned so much from this work
ReplyDeleteYou're welcome bro.
Deletethaks bhai
ReplyDeleteYou're welcome bro.
DeleteCan I use it for my website?
ReplyDeleteYes you can use our codes in the building of the website but can't post our codes.
Deletequestion when press submit i want it send it to another page how can i do that. help!
ReplyDeleteCreate an another HTML File and give the path of that HTML File inside action attribute of Form Tag.
DeleteThanks
ReplyDeleteYou're welcome...Keep visiting!
DeleteAwesmoe
ReplyDeleteThank you :)
Deleteamazing
ReplyDeleteThanks bro
DeleteI get an error saying 'cannot read property 'addEventListener' of null'
ReplyDeletePlease check your codes
Deletenvm, I fixed it
ReplyDeleteGood :)
Deletedear sir,
ReplyDeletewen publish you laytest, chat system script,i am fom bangladesh.i am your bih fan.
It's uploaded. Here is the blog - Realtime Chat Application using PHP with MySQL & JavaScript Ajax
Deletei want when i chick on icon open this page how?
ReplyDeletePost a Comment
We welcome relevant and respectful comments. Off-topic or spam comments may be removed.