Lab 5
So in this lab, we were starting to advance our jquery skills by using the .animation method. So this allows us to make different type of animations to play out in the websites. The cool thing is that it can be called on anytime like mouseOver or onClick, so it bring us to a lot of options to use it. So in the lab, we are suppose to have 10 buttons to change the box, but i decided to only stick with 5 buttons since one is basically the fundamental to 4 buttons. I used the template of the other lab to have a "head start" to it.
So basically, you first have to call the element that you want to animate, then select the properties that you want to change. The move button would change the position, the shape button would change the border-radius, the size button would change the size and the opacity button would change the button. The random button would randomly change the square with the Math.random as a replacer to the value. This is basically what i did for lab #5
So basically, you first have to call the element that you want to animate, then select the properties that you want to change. The move button would change the position, the shape button would change the border-radius, the size button would change the size and the opacity button would change the button. The random button would randomly change the square with the Math.random as a replacer to the value. This is basically what i did for lab #5
Comments
Post a Comment