-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (47 loc) · 1.89 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>3D flip Login and registration form</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="container">
<div class="card">
<div class="inner-box" id="card">
<div class="card-front">
<h2>LOGIN</h2>
<form>
<input type="email" class="input-box" placeholder="Your Email Id" required>
<input type="password" class="input-box" placeholder="Password" required>
<button type="submit" class="submit-btn">submit</button>
<input type="checkbox"><span>Remember Me</span>
</form>
<button type="button" class="btn" onclick="openRegister()">I'm new here</button>
<a href="">Forgot Password</a>
</div>
<div class="card-back">
<h2>REGISTER</h2>
<form>
<input type="text" class="input-box" placeholder="Your Name" required>
<input type="email" class="input-box" placeholder="Your Email Id" required>
<input type="password" class="input-box" placeholder="Password" required>
<button type="submit" class="submit-btn">submit</button>
<input type="checkbox"><span>Remember Me</span>
</form>
<button type="button" class="btn" onclick="openLogin()">I've an account</button>
<a href="">Forgot Password</a>
</div>
</div>
</div>
</div>
<script>
var card =document.getElementById("card");
function openRegister(){
card.style.transform="rotateY(-180deg)";
}
function openLogin(){
card.style.transform="rotateY(0deg)";
}
</script>
</body>
</html>