JavaScript
  Home arrow JavaScript arrow Manipulating Background Colors with the GX...
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

Manipulating Background Colors 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-01-21

    Table of Contents:
  • Manipulating Background Colors with the GX JavaScript Animation Framework
  • Review: basic animations with the GX framework
  • Modifying the background color of a sample div
  • Manipulating the background color and height of a div simultaneously

  • 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


    Manipulating Background Colors with the GX JavaScript Animation Framework


    (Page 1 of 4 )

    In this second installment of a series, I take a deeper look at a few more features provided by the GX library. Specifically, I show how to use them for performing parallel animations that include changing the width, height and background color of a sample div.

    If you’re ever used jQuery to add dynamic behavior to elements on your web pages, then you may already have tried out its animation capabilities. These work remarkably well in 90% percent of use cases. However, what happens if you need to implement even more sophisticated effects without leaving the comfortable API of the popular library?

    Enter GX, a full-featured JavaScript framework developed by Riccardo Degni () that will let you perform all sorts of animations with your HTML elements, using only a small set of highly-configurable methods. What’s more, since GX uses the functionality of jQuery behind the scenes to leverage its full potential, you’ll find that working with it is very similar to using jQuery’s native methods.

    Logically, if you’ve already read the previous article in this series, then you have a clearer idea of how to perform basic animations using the GX library. In that tutorial I developed some examples that showed how to dynamically modify the width and height of a simple div by using the library’s “gx()” method.

    I also showed how to animate the targeted div by altering its dimensions simultaneously, which speaks for itself about the capabilities offered by GX for performing parallel animations.

    However, this is only a simple demonstration of what can be accomplished with GX, since it comes packaged with tons of helpful features. So, in this second episode of the series I’ll be developing a few additional examples that will show how to use the library for changing the background color of a div, along with its width and height properties.

    Does this sound like an interesting topic? Then begin reading now!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This second part of the series shows how to use the GX library for performing...
     

    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