For our Lab#11 we had to have two buttons that would change each other when you hover over the one on top, the one under it changes opacity. In order to do this we had to use CSS and jQuery. This lab was complicated at first because we didn't know what was supposed to happen at first and it seemed really cool to be able to change the opacity of a button with another button. For the buttons we needed two div tags so that they were separate. In the CSS the opacity had to be the same so that you see the difference when you hover over the top button.
In the jQuery there were mouseenter functions for when the user would hover over the buttons. Also, there was fadeTo functions so that the button would change color. We had separate CSS and Javascript files so that we would be able to link them to the HTML file. This lab will help me in my future because now I have more knowledge on jQuery and learned how to make a button fade in when you hover over a different button.

No comments:
Post a Comment