Login Register

wipeIn

Using wipeIn/Out

Hi, I'm having a really hard time understanding Dojo and how to use the wipeIn/Out effects. I've created some jQuery code to do exactly what I want but cannot seem to figure out how to convert it to Dojo. Can anyone help me with this?

$(document).ready(function(){
        $('.main_navigation ul li:has(ul)').hoverIntent({
                over: function () { $(this).find("ul:first").slideDown('normal'); },
                out: function () { $(this).find("ul:first").slideUp('normal'); },
                timeout: 500
        });
});

fx.wipeIn, fx.wipeOut

Due to the mainframe that I'm currently working with, it seems to be a problem with me inserting extra functions to get the wipeIn/wipeOut to be able to slide horizontally. The two files that I was changing was the dojo/fx.js and dojo/NodeList-fx.js. However I know there is a much better way to accomplish this task, by possibly adding a switch as a parameter to tell whether or not you want a vertical slide much like what dojo provides for you or a horizontal slide.

in the wipeIn function there is a part of code that is
var height = dojo.style(node, "height");

Syndicate content