WebTec
WebTec
Learn everything about Webdevelopment
Home
Social Media
About
Animated Login | Using HTML, CSS and JavaScript
HTML
Login
Login
CSS
body, html { margin: 0; padding: 0; font-family: sans-serif; background: white; } .login-container { width: 300px; height: 600px; padding: 40px; position: absolute; top:50%; left: 50%; transform: translate(-50%, -50%); background-color: white; text-align: center; } .login-container input[type = 'text'],.login-container input[type = 'password'] { border: 0; background: none; display: block; margin: 20px auto; text-align: center; border: 2px solid #339EA5; padding: 10px 10px; border-radius: 25px; outline: none; color: black; transition: 0.25s; } .login-container input[type = 'text']:focus,.login-container input[type = 'password']:focus { width: 240px; border-color: #53C092; } .login-container input[type = 'submit'] { border: 0; background: none; display: block; margin: 20px auto; text-align: center; border: 2px solid #53C092; padding: 10px 10px; border-radius: 25px; outline: none; color: black; transition: 0.25s; width: 100px; } .login-container input[type = 'submit']:hover { background: #53C092; color: white; }
Back
Video