Login Register

dojo.fx

Using dojo.animateProperty with dojo.fx.Toggler

Hi folks,

I am trying to toggle animations. It works nice with dojo.fadeIn/dojo.fadeOut and dojo.fx.wipe/dojo.fx.wipeOut. But now I want to fade to a certain opacity only. I'm trying to use dojo.animateProperty to do so, but I don't know how to pass the properties.

The closest I got so far was this:

var t = new dojo.fx.Toggler({
        node: id,
        showDuration: 500,
        hideDuration: 500,
        showFunc: dojo.animateProperty,
        hideFunc: dojo.animateProperty,
        properties: {opacity:0.5}
});

dojo.fx WipeIn / WipeOut

Not sure if anyone has done this. Does anyone know if we can use dojo.fx wipeIn / wipeOut declaratively? For certain parts of my application, I'd like provide something like toggle using an html attribute similar to how FilteringSelect, Accordion and other components work.

I'd like to see an example if there is one.

Is there an event hook to the end of a widget's "fadeIn" operation?

Hello,

I'm wondering how I could go about hooking on to the 'fadeIn' animation of a dijit.Dialog in order to perform an event once the Dialog is fully visible and drawn to the screen.

The 'show' event is not adequate. I have in my code, immediately following Dialog.show(), the instantiation of a SWFobject once the Dialog is visible, but on IE7 it is quite ugly-- the SWFobject immediately appears and then a second or two later, the dialog itself.

What do you think? Is there a such a mechanism?

Syndicate content