Fade in and out Sub-Menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
SkyFlyer
Super Advanced
Super Advanced
Posts: 68
Joined: Tue Jul 29, 2003 4:16 am
Location: Vancouver, Wa
Contact:

Fade in and out Sub-Menus

Post by SkyFlyer »

I've been looking at a lot of the user sites and also stuff on Milonic, and after I while I forget where I was and where I am going!!!
I saw one site where the submenu faded in AND out.
Can anyone point me to where I can find out more about this.
My current menu does the closing dissolve as I move the mouse away.
I am using the downloaded code.

I AM looking forward to the finalized HELP with more descriptions.
I understand the work involved to get a product that works well.
And this does, thanks to Andy and all the folks at Milonic. Great stuff!
Thanks ... 8)
Nuffsaid ...
Bob
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Fade in and out Sub-Menus

Post by kevin3442 »

SkyFlyer wrote:...I saw one site where the submenu faded in AND out.
Can anyone point me to where I can find out more about this.
My current menu does the closing dissolve as I move the mouse away...
The download menu contains the following code in the menuStyle definition, in menu_data.js:

Code: Select all

overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
The outfilter is what caused the "fade out" when you mouse off of a menu. To get the same effect... fade in.. when a menu opens, change the overfilter to be the sam as the outfilter, like so:

Code: Select all

overfilter="randomdissolve(duration=0.3)";
Hope that helps,

Kevin
User avatar
SkyFlyer
Super Advanced
Super Advanced
Posts: 68
Joined: Tue Jul 29, 2003 4:16 am
Location: Vancouver, Wa
Contact:

Fade In and Out Sub-Menus

Post by SkyFlyer »

Thanks for taking time to answer, Kevin.
I guess today I am just fuzzy. Not enough drugs (the allergy kind!). :(
I understand the overfilter statement in the code. And the dissolve works when you remove the mouse.
Your statement to change the overfilter to be the same as the outfilter puzzles me. When and where do you put this statement.
How and where do you put it to control when the menu opens.
I guess a little more of a sample would be what I'm looking for, if you can spare a few moments. If not, it works fine the way it is. Was just trying play with it!
Thanks.
Nuffsaid ...
Bob
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Check the menu_data.js file that is in the download. It contains an example of overfilter and outfilter use.
John
Post Reply