mouseout dalay 500 ms

More
11 years 6 months ago #30385 by ivan.milic
Replied by ivan.milic on topic mouseout dalay 500 ms
In template manager you enter Coffeine template settings and there you have bunch os settings one is template style. If custom then you control it using option for animation selection. here is save button you need to slick.


If your predefined style is 1 , you could change :

$menuAnimationEffect = "slideDown('slow')";

to fro example:

$menuAnimationEffect = "slideDown(100)";

with will mean animation will be slide down with duration of 100ms

Please Log in to join the conversation.

More
11 years 6 months ago #30400 by Jan Harmening
Replied by Jan Harmening on topic mouseout dalay 500 ms
Thank you.

I have done as you have said, but not with the result, it should bring.

I don't know iff any of the styles is in use, because when I change to these styles, the layout looks different.
I have changed all 5 styles to
$menuAnimationEffect = "slideDown(500)"
I have also saved Template settings where the option "custom" is in use.

But the menu is still collapsing imediately after leaving the mouse from it.

It seams that another code must be changed or added,
or if no of the styles is in use within another data.
Hopefully you find out and can tell me.

By the way: It takes minutes till the template settings are ready for changing or saving after opening it. Although when I press save, it takes many seconds till it is doing this. I don't know why.

Please Log in to join the conversation.

More
11 years 6 months ago #30402 by ivan.milic
Replied by ivan.milic on topic mouseout dalay 500 ms
Ok then flies styles/styleX.php are not of interest.

here :
Code:
<field name="menuEffect" type="list" default="drop_in" label="TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION" description="TPL_HOT_COFFEINE_DESC_TOPMENU_CLASSIC_ANIMATION"> <option value="fadeIn(700)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_FADE</option> <option value="slideDown('slow')">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_SCROLL</option> <option value="show(400)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_DROP</option> <option value="show(0)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_NONE</option> </field>

you can just add your animation like this:
Code:
<field name="menuEffect" type="list" default="drop_in" label="TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION" description="TPL_HOT_COFFEINE_DESC_TOPMENU_CLASSIC_ANIMATION"> <option value="fadeIn(700)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_FADE</option> <option value="slideDown('slow')">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_SCROLL</option> <option value="show(400)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_DROP</option> <option value="show(0)">TPL_HOT_COFFEINE_LABEL_TOPMENU_CLASSIC_ANIMATION_NONE</option> <option value="fadeIn(200)">YOUR ANIMATION</option> </field>

then save go to template options and select option you added and save.

Please Log in to join the conversation.

More
11 years 6 months ago - 11 years 6 months ago #30405 by Jan Harmening
Replied by Jan Harmening on topic mouseout dalay 500 ms
But "slide down" is not the right option, as you have written before.
It must be something like a delay after leaving the mouse from menu.

Maybe we are not talking about the same thing.
Because the slide down is okay.
But the menu is collapsing imediately after the mouse leaves the menu.

I mean, the sub-menu should remain open for about 500 ms antil it is closing after the mouse has left the menu.
Last edit: 11 years 6 months ago by Jan Harmening.

Please Log in to join the conversation.

More
11 years 6 months ago #30415 by ivan.milic
Replied by ivan.milic on topic mouseout dalay 500 ms
Try this, open index.php of template, find this:
Code:
<!-- top menu --> <script type="text/javascript"> function mainmenu(){ jQuery(" #nav ul ").css({display: "none"}); // Opera Fix jQuery(" #nav li ").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php echo $menuAnimationEffect; ?>; },function(){jQuery(this).find('ul:first').css({visibility: "hidden"}); });} jQuery(document).ready(function(){ mainmenu();}); </script>

change it to:

<!-- top menu -->
<script type="text/javascript">
function mainmenu(){
jQuery(" #nav ul ").css({display: "none"}); // Opera Fix
jQuery(" #nav li ").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php echo $menuAnimationEffect; ?>;
},function(){jQuery(this).find('ul:first').fadeOut(500,function(){ jQuery(this).css({visibility: "hidden"}); }) });}
jQuery(document).ready(function(){ mainmenu();});
</script>

Please Log in to join the conversation.

More
11 years 6 months ago #30431 by Jan Harmening
Replied by Jan Harmening on topic mouseout dalay 500 ms
Unfortunately this was the wrong code, because the menu (submenu) was closing after 500 ms, although the mouse was still over the menu button.
This makes no sense, because the visitor can not navigate.

Du you not know the correct code?
The open submenu shout have a dalay of 500 ms before it is closing iff the mouse leaves the menu button.

I hope, you can send me the correct solution.

Only this will show to all the other, that you know what you are doing and they can have trust in your work, in your templates.
Today a really good template have to have this featcher.

Please Log in to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum