-
Notifications
You must be signed in to change notification settings - Fork 0
/
transition.html
56 lines (44 loc) · 881 Bytes
/
transition.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
55
56
<!--- Animation effect of Css 3
1) Transition Effect-
It is used to add the change in the element gradually from one style to another without using coral.
2) Multiple transition effect-
--->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
#dd{
height: 150px;
width: 200px;
border: 1px solid black;
background-color: black;
transition: 3s;
}
#dd:hover{
width: 400px;
height: 400px;
}
#tt{
margin-top: 200px;
margin-left: 400px;
height: 150px;
width: 200px;
border: 1px solid red;
background-color: hotpink;
transition: 3s;
}
#tt:hover{
height: 300px;
width: 400px;
transform: rotate(360deg);
}
</style>
</head>
<body>
<div id="dd"></div>
<div id="tt"></div>
</body>
</html>