forked from tiy-orl/html-css-fundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhulk.html
55 lines (52 loc) · 1.26 KB
/
hulk.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hulk Mad</title>
<link href="https://fonts.googleapis.com/css?family=Bangers|Sue+Ellen+Francisco" rel="stylesheet">
<style>
.bruce{
position:absolute;
top:55px;
left:0;
font-size:5em;
opacity:1;
z-index:5;
background-color: blue;
/*font-family: 'Sue Ellen Francisco', cursive;*/
font-family: 'Bangers', cursive;
transition: font-size 3s, color 2s, opacity 3s, z-index 3s, left 2s, display 2s;
}
.bruce:hover{
font-size:5em;
opacity:0;
display:none;
z-index:1;
left:-100px
}
.hulk{
position:absolute;
top:55px;
left:0;
opacity:1;
font-size:5em;
font-family: 'Bangers', cursive;
transition: font-size 3s, color 2s, opacity 1s;
}
.hulk:hover{
font-size:5em;
color: green;
opacity:1;
}
.bruce .hulk{
position: absolute;
top: 70px;
}
</style>
</head>
<body>
<div class="bruce"><span>Puny Banner.</span></div>
<div class="hulk">Hulk Smash!</div>
<div class="bruce hulk">this is a test</div>
</body>
</html>