-
Notifications
You must be signed in to change notification settings - Fork 1
/
observer-is-on-elem.html
62 lines (51 loc) · 1.34 KB
/
observer-is-on-elem.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
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>Observer is on element</title>
<style type='text/css'>
body {margin: 40px 230px;position: absolute}
div {
position : absolute;
}
.elem {
width : 120px;
height : 80px;
font-size : 30px;
background-color: rgba(30%, 40%, 80%, 0.3);
border : 2px solid rgba(40%, 50%, 90%, 0.4);
}
#a0 {
}
#a1 {
transform : scale(0.6)
;
}
#a2 {
transform : scale(0.6)
translate(260px, 120px)
;
}
#a3 {
transform : scale(0.6)
translate(260px, 120px)
rotate(-25deg)
;
}
#a4 {
transform : scale(0.6)
translate(260px, 120px)
rotate(-25deg)
translate(-200px, -30px)
;
}
</style>
</head>
<body>
<div class='elem' id='a0'>T0</div>
<div class='elem' id='a1'>T1</div>
<div class='elem' id='a2'>T2</div>
<div class='elem' id='a3'>T3</div>
<div class='elem' id='a4'>T4</div>
</body>
</html>