Thursday, April 27, 2017

Lab 13 jQuery Animate() Method Reflection Journal


      For this lab, I had to create four division with different animations demonstrated using the .animate() method. First I created an html document with my overall css and then I made a table with 2 columns and 6 rows for organization. For the first animation, I changed the opacity so it would look faded and clear. I changed the width and for another one I changed the height of the division. Then I changed the position making it go to the left and come back to its original place. Then the last division had all of those effects above all in one division tag. I made only one button so when you click on the button it plays the function that contains the jquery code and all of them do the actions at the same time.
This is a sample of the jquery involved:
$("button").click(function() { 
var div = $("div");
div.animate({height:"300px", opacity: "0.4"}, "slow"); });

No comments:

Post a Comment