-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweek6.html
45 lines (40 loc) · 1018 Bytes
/
week6.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
<!-- Week 6 Manipulating CSS Class Properties Using JavaScript Creating CSS3 Transitions and Animations in CSS and triggering them with JavaScript-->
<!DOCTYPE HTML>
<html>
<body class = 'background'>
<header>
<link rel="stylesheet" type="text/css" href="main.css">
</header>
<main>
<!-- Change Color -->
<div>
<button class='color' onclick="changeColor()">What Color am I?</button>
</div>
<div class = 'color'>
<p class = 'color'>Me Too!</p>
</div>
<!-- Change Style -->
<div>
<button class='bold' onclick="makeBold()">Be Bold</button>
</div>
<!-- Change Background Color -->
<div>
<button onclick="background()">Background</button>
</div>
<!-- Reset -->
<div>
<button onclick="reset()">Reset</button>
</div>
<!-- Transition-->
<div id = 'box'>
</div>
<!-- Animation-->
<div id = 'boxA'>
<h4>Wingardium leviosa</h4>
</div>
</main>
<footer>
</footer>
</body>
<script src="week6.js"></script>
</html>