Adblock detected! Please disable your adblocker to continue.

Create a Modern 3D Animated Login Page Using HTML & CSS in FULL code

 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

<!--DOCTYPE html-->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" 
    content="width=device-width, initial-scale=1.0">
    <title>Login Page</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="login-container">
        <h2>Login</h2>
        <form id="login-form">
            <input type="text" 
            id="username" placeholder="Username" required>
            <input type="password" 
            id="password" placeholder="Password" required>
            <button type="submit">Login</button>
        </form>
    </div>
</body>
</html>



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);
}





Previous Post Next Post

نموذج الاتصال