-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransform2d.html
More file actions
38 lines (38 loc) · 1.18 KB
/
transform2d.html
File metadata and controls
38 lines (38 loc) · 1.18 KB
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 lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>transform</title>
<style>
#box1{
border: 2px solid red;
width: 250px;
height: 200px;
background-color: rgba(255, 0, 0, 0.492);
margin: 150px 300px;
transform: rotateY(180deg);
}
#box2{
border: 2px solid red;
width: 250px;
height: 200px;
background-color: rgba(255, 0, 0, 0.492);
margin: 150px 300px;
transform:rotate(0deg);
transition: transform 2s;
}
#box2:hover{
transform:rotate(60deg);
}
</style>
</head>
<body>
<h1>CSS : 2d transform</h1>
<div id="box1">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Libero dignissimos ab enim maxime? Iste officiis ab nam quasi nisi est exercitationem nostrum voluptatem vel obcaecati ut fuga, neque eum excepturi!
</div>
<div id="box2">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Libero dignissimos ab enim maxime? Iste officiis ab nam quasi nisi est exercitationem nostrum voluptatem vel obcaecati ut fuga, neque eum excepturi!
</div>
</body>
</html>