JavaScript
  Home arrow JavaScript arrow Cancel, Queue and Pause Animations with th...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Cancel, Queue and Pause Animations with the GX JavaScript Animation Framework
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2010-02-08

    Table of Contents:
  • Cancel, Queue and Pause Animations with the GX JavaScript Animation Framework
  • Creating controlled effects: queued animations
  • Canceling animations with the gxInit() method
  • Pausing and resuming animations

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Cancel, Queue and Pause Animations with the GX JavaScript Animation Framework


    (Page 1 of 4 )

    In this eighth part of a series, I discuss how to cancel, pause and resume animations with the GX JavaScript library. You'll see that performing these tasks, as with many of the tricks you can make the GX library do, is a straightforward process.

    Some people do it only for fun, some to deliberately fire up an engaging and healthy debate. In either case, asking a question like "what's the best framework out there?" works remarkably well, whether the question points directly to Java, PHP, CSS or even the JavaScript world (feel free to add your own language/technology to the list).

    If you take some time to research the topic, you'll find blogs and forums where multitudes of users declare with brave and passionate feelings why the framework they're using is the best. This diversity of opinions can be used to answer the previous question quickly: in reality, the best framework is the one that best suits your needs. This simple rule applies to different programming languages, be it on the server side or in the always-uncertain client territory.

    Naturally, something similar can be said about JavaScript animation frameworks. Nowadays, there are a lot of them that will do the job very well when it comes to implementing attractive effects on web pages, but it's pointless to say that one in particular is better than the others. However, it's fair to stress that a good animation framework does have to fit at least two minimum conditions. First, it must have a flat learning curve, and second, it must come with a decent number of features that permit you to animate HTML elements in an easy and unobtrusive way.

    That's exactly the case with GX, a powerful framework developed by Riccardo Degni. It will let you implement a great variety of animations on your (X)HTML documents, based on the functionality of the popular jQuery library.

    If you've already read some of the articles that precede this one, then surely at this point you'll have a solid background in how to use the "gx()"method provided by GX to perform a few simple animations on web pages. All of the examples created so far, however, show how to use this method for implementing animations that can't be canceled, paused or resumed at any time. Fortunately, the library will let you accomplish all these things, and even create predefined chains of effects, something known in the GX's jargon as queued animations.

    Therefore, in this eighth part of the series I'll be demonstrating how to take advantage of these useful features, so you can start implementing them on your own web site. Let's get going!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This installment of the series shows how to use the GX library for pausing, resuming...
     

    JAVASCRIPT ARTICLES

    - Dynamic Drop-down Menus: Javascript Progress...
    - Creating Drop-down Menus Using Progressive E...
    - Building Slide Shows Using Progressive Enhan...
    - Form Validation with Progressive Enhancement...
    - Validating Web Forms: an Introduction to Pro...
    - Ajax Progressive Enhancement: Reading Remote...
    - Ajax Image Requests: Progresive Enhancement ...
    - jQuery Image Gallery: Working with Progressi...
    - Progressive Enhancement in an Image Gallery
    - Building a Drop-Down Menu with the HoverInte...
    - Using All of the HoverIntent jQuery Plug-in`...
    - Controlling Mouseout Events with HoverIntent...
    - Using the Interval Argument of the HoverInte...
    - Tweaking the Sensitivity of the HoverIntent ...
    - Introducing the HoverIntent jQuery Plug-in







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek