-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (29 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>glass</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="form-container">
<form action="" id="form">
<h3>login</h3>
<i class="fab fa-facebook"></i>
<input type="text" placeholder="username" />
<input type="email" placeholder="email" />
<input type="password" placeholder="password" />
<input type="submit" value="Login" />
<script>
var form = document.getElementById("form");
form.addEventListener("mousemove", (e) => {
var x = (window.innerWidth / 2 - e.pageX) / 12;
var y = (window.innerHeight / 2 - e.pageY) / 12;
form.style.transform = "rotateX(" + x + "deg) rotateY(" + y + "deg)"
});
</script>
</body>
</html>