Login Register

animation

Two New Effects, New Direction

Since this is supposed to be the "Midterm Evaluation Period" and "Coding Phase II" starts on Tuesday, I've been taking it easy this past week. However, I haven't completely stopped working on my project; there are two new effects. Nothing to spectacular, just a wipe version of the previous "shear" effect ("pinwheel" was the best name I could think of; suggestions are welcome), and an effect where pieces simply fade out. The demo page is here.

Shear Effect, Verbose Demo Page

Since my last update, I've made the demo page more verbose and created a "shear" effect that, once again, splits the element into rows and/or columns and slides them in alternating directions, with an optional progressive or random delay between each piece's animation.

Disintegrate Effect

With the successful completion of the explode effect, I decided to build on the code used to split the node into pieces. I split the code in half and thus created a new generic function, dojox.fx._split that returns an animation object that splits the node into args.rows and args.columns and applies args.pieceAnimation() to each piece. This function takes the piece, its x and y location in the grid of pieces, and the dojo.coords of the original node as arguments and returns either an animation object or an array of animation objects to be combined.

Explode Effect

I created a nice animation effect that splits the element into an arbitrary number of rows and columns, then sends them flying away from the element's center. The user can specify whether or not the pieces fade out as they move, and whether or not the distance and duration of each piece's animation should be randomized.

The effect is accomplished by cloning the node once for each piece and combining each piece's animation together. The original node's opacity is set to zero onPlay.

FisheyeLite Animation doesn't work after changing data

I am workin on a project for the university with fisheyeLite. I make an sortArray to sort an array alphabetically with onclick "abc". It works and sort the array but after that the animation from fisheye doesn't work matter. Can anybody help me? An also problem is that the animation doesnt work on MS Internet Explorer 8. Thanks a lot for your answers.

Code:

{
jdata:"",
templateString: "

" +
"
abc

"+

Intuitive Animation Toolset

The animation framework in Dojo is very flexible, but because of that flexibility, using it is not a trivial task for the common web programmer. The animation system works well for the JavaScript-savvy, but what if a Dojo beginner wants to add a simple animated effect to an element on the page? What if he wants to make that animation toggle?

Animation performance

Lately, I've been seeing some issues with the widget animations on some of my pages, specifically with the fade in and slide in of the of the dialog and toaster widgets respectively. I created some very simple pages that just test instantiating these widgets and things are a little smoother. Does anyone have any insights into how the size or complexity of a page affect animation performance?

Chain Animation onEnd Event Firing

Hi All,

I have noticed the following behaviour when using the dojo.fx.chain animation and connecting to its onEnd event.

What I would like to do is have a couple of animations run one after the other, then when all have finished, call another function, below is my contrived example;

var anim1 = dojo.fx.wipeOut({node:'ele'});
var anim2 = dojo.fx.wipeIn({node:'ele'});
var c = dojo.fx.chain([anim1,anim2]);

dojo.connect(c,"onEnd",someFunc);

c.play();

Dialog: optional fade in/fade out animation

As a user of Dojo since 0.4, I have to say that I prefer the dialog simply appearing on show, rather than fading in. The fade in and fade out animations on show and hide respectively can be nice but should be optional by a parameter. Would this be possible to implement?

Syndicate content