Alright
First of all there's nothing but to include the file to your document to "install" this script.
Since I did not used a class approach, you do not have to create objects etc. to use the effects.
The general usage for the functions is like this:
Code:
fadeNSlide(document.getElementById('content'), 0, -1, false, true, callbackFunction);
The above function contracts the element whose id is "content" to a height of 0 pixels with fading it to 0 opacity. And calls the "callbackFunction".
The first parameters is the object as you may understand,
the second oarameter, "0" is the target dimension(not height yet

),
following "-1" tells that this is a contraction(not an expansion) to the function so it fades
out,
following "false" tells the function that you want this slide in vertical direction
not horizontal,
Following "true" means
you are calling the function, not the function itself so it should always be true while you are using.
The callbackFunction is called when the sliding is finished. You just write here the function's name or you may define a function right in here. The fadeNSlide function gives its object (in this case the element whose id is "content") as the first and only parameter to the callbackFunction when calling it. This parameter is optional so if you did not understand or do not need, you can simply not give anything
The above explanation is valid for fadeMe, and moveMe functions.
All other explanation's are on the code as comments just after the function's titles.
If you have any other questions please post here and I'll try to help

Bookmarks