Lab #6 - JQ Stop

This lab was an add-on to lab #5 which was jQuery animate. Continuing from my last webpage, I had made buttons to move, change the size, opacity, do it all, and alter the shape of a white div box on the webpage. There was also a reset button that makes all of the modifications on the white div box change. Now, for this lab the objective was to add a stop button to all of the animations. What this button would do is completely stop any animation in progress. For example, if I press the size button and then press the stop button, it should stop the size modification while it is happening and basically freeze the action. This can be done for all of the animations.

Easily, this button was made with a .stop() function in jQuery. Once applied to the selector, this method allows for when this click function runs, to stop any animations currently in process. I've tested it with all of the animations and it currently works for all of them.

This can be useful to the web designer's arsenal because in case they overdo their animations and want to stop them, the option would be there using this jQuery stop function. Also, it will allow for others using their webpage to stop any animations taking place in case they have a low-end device that can't run it well or if they have problems with it which can vary. It just allows for there to be an option to stop the animation and take a break from the world of animation.

Comments

Popular posts from this blog

WBL Workshop #6 Interview Skills

CTE Expo Reflection Journal

Lab #12 Reflection