Modern 3D Animated Login Page design using HTML & CSS
Creating a simple Modern 3D Animated login page using HTML and CSS involves setting up a basic interface that allows users to enter their credentials to access a secure area of a website. you can copy & paste the code below and try it yourself.
SAMPLE OUTPUT
HTML CODE
Login Page
Login
CSS CODE
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #e6f0ff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-container {
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
width: 300px;
text-align: center;
}
.login-container h2 {
margin-bottom: 20px;
color: #333;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
display: block;
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
/* Validation style */
.invalid {
border-color: #ff6347;
}
/* 3D effect */
.login-container {
transform: perspective(1000px) rotateY(10deg);
transition: transform 0.5s;
}
.login-container:hover {
transform: perspective(1000px) rotateY(0);
}
Tags
html & css