Assignment #13: Jiggle into JavaScript
Overview
In this assignment, you will be using Javascript to change the CSS properties of a box upon button clicks.
Before You Begin
You may want to spend a little time reading through each of the below references. Just skim enough to get the high-points.
Instructions
Create two files on your computer using Sublime Text. One should be called
index.html
, and the other should be calledjavascript.js
. These should be in the same directory.Then copy (and save) the code below into your HTML file. This is your starting HTML.
3. Now write your Javascript in the Javascript.js
file such that clicking the buttons
re-styles the box appropriately (i.e. When a user hits "Grow" the box should increase in
size, when a user hits "Fade" the box should change opacity, etc.).
4. After you finish, include both your HTML file and CSS file in your Pre-Work Submission
folder.
5. After you finish, upload your code to (however they are going to upload it).
Bonus
Try adding a few buttons of your own, with different CSS effects. There's a LOT more than box-changing that you can do with Javascript, but it's a fun start!
Hints
- Push yourself here. Be resourceful and use Google searches if you get stuck. There's plenty of material to learn from.
- If you don't quite get it to work, submit what you have! No shame in not knowing just yet. You've got six months to figure this stuff out.
Copyright
Coding Boot Camp © 2016. All Rights Reserved.