Archive

Archive for March, 2009

GX 1.1 and GX Extras are come

March 31st, 2009

Today there are two great news: either the version 1.1 of the GX framework and the its extension called GX Extras are now available. In this post I’ll expose either the major changesets that affected the previous version and the new features, and I’ll explain how to use them properly.

GX 1.1

This new release brings many changes, especially in the API usage/naming. Now the engine is more consistent and the size is.. smaller! Right, the incredible super tiny size of the previous version has been reduced: now the uncompressed version weights about 10.0kb , against the 10.4kb of the 1.0.

Now let’s talk about the changesets:

  • the gxPause and the gxResume methods are gone in favor of the gx method, that is the unique method for creating, pausing and resuming animations. You can now pause and resume your effects by writing the following:
    // pauses an animation
    $('myEl').gx('pause');
    
    // resumes an animation
    $('myEl').gx('resume');

    The API is now more solid and less verbose.

  • there are no more aliases: the anime method is gone.
  • the new delay option is now available (see a demo): you can delay all the animations in the queue by specifing the “delay” option. In opposite to the standard behaviour, where animations are fired immediately one after another, with the delay option you can delay all step in the queue:
    $('myEl').gxInit({delay: 2000});
    
    $('myEl').gx({width: 200}, 4000)
             .gx({width: 0})     // after 2000ms (+4000ms of the previous ring)
             .gx({width: 400})   // after 2000ms (...)
  • the GX Extras API has been added (see below)

Read more…

GX, Javascript , , ,

GX Tutorial #1: handling colors

March 19th, 2009

Before starting the tutorial, I would like to thank Dion Almaer of Ajaxian for his kidness and for having dedicated a post about the GX framework (which I appreciated very much) as well as all the users that downloaded and are downloading GX in these days. I’m glad to report here the responses directly from the Download Counter:

  • Friday: 288
  • Saturday: 493
  • Sunday: 637
  • Monday: 894
  • Tuesday: 1026
  • Wednesday: 1081

I’m very happy to read the data informations placed above and I hope you’ll enjoy GX in all its features.

Now stop talking and let’s start the tutorial!

 

Read more…

GX, Javascript, Tutorials ,

GX - Full-featured Javascript Animations Framework

March 10th, 2009

GX_logo

GX, my latest project, is come.

As the official page says, “GX is a full-featured, cross-browser, super-tiny (10kb uncompressed) Javascript Animations Framework. Using GX you can create complex animations working with every w3c CSS property. Currently, GX is designed in order to work with the jQuery Javascript Library and is being released under the MIT License“.

That’s not all. GX is not like an usual library for creating animations, its main goal goes further, in order to build a real FULL-FEATURED framework for creating smooth, custom and complex animations WITH EASE.

First of all, i want to start saying that GX is designed for everyone: beginner, intermediate and expert Javascript users. I decided to integrate GX with the jQuery Javascript Library for two main reasons: first, i really like the jQuery framework and its awesome community, and i find that the former is one of the best open source products available on the Web.

However, when i needed to make some complex animations, i was really getting mad (too many scripts required and placed in the same page for extending the core engine, too many kb). Secondly, i have already developed a software based on MooTools called moo.rd, so i wanted to create something else based on another library.

I’ve developed GX keeping in mind mainly two Design Patterns:

  • the “Write Less, Do More” Pattern picked from the jQuery Library. With GX you’ll always write as less code as possible to get the best results.
  • the DRY (Don’t Repeat Yourself) Pattern. If a GX’s functionality is needed more than once, it will be internally reused with no duplicate.

GX respects the Strict Standards and doesn’t generate CSS/Javscript warnings. Moreover it prevents possible Memory Leaks because it will always use the same instance for a determinate element (say goodbye to “flickering”) to avoid either memory leaks and flickering issues. This technique allows you to always keep track of your animation’s state.

Although GX is completely cross-browser, it doesn’t contain any Browser sniffing: it’s 100% pure Javascript engine.

Read more…

GX, Javascript , , , ,

Introduction

March 9th, 2009

This is the very first post on this blog.

In these pages you’ll find a lot about my projects and my works, as well as my personal opinions about Web technologies, Web programming and, of course, all the related topics.

My blog isn’t and will never be a periodic magazine nor a truly-defined “blog”, it simply represents the preferred way to expose my projects and my opinions to Web.

Now let’s talk about the theme. I developed the blog section of my official Website using Wordpress and choosing to create a usable, simple and funny theme with a dark-toon color scheme. It’s 100% valid XHTML and 100% valid CSS because, as i wrote in my Profile, i love either the standards and all the recent stricts.

I think you’ll find it very simple to use and explore.

I’ll be very glad to hear your suggestions, your tips and your personal opinions about my projects and my topics and I hope you’ll let me know what you think about them!

Riccardo Degni

General ,