2

I am using query super fish and i would like to fadeout the menu on rollout. how can i do this ?

rogaroga
  • 48
  • 3

2 Answers2

1

Closing animations with superfish are not supported. There may be a few hacks out there, but it appears that the official distribution does not support them.

David
  • 1,674
  • 1
  • 21
  • 35
  • do you have an example of hack ? i just would like to do a simple fadeout… – rogaroga Oct 15 '11 at 18:50
  • 1
    @rogaroga Here is the link to the potential hack:http://www.mail-archive.com/jquery-en@googlegroups.com/msg34830.html. Have not tried it. Hope that helps. – David Oct 15 '11 at 22:15
  • thanks. the hack was not working for me… so i did my own menu script. – rogaroga Oct 27 '11 at 10:47
0

There is still an active branch working on Superfish, called Superfish Reloaded.
Looking at their code, an animOut is implemented, now.

jQuery(document).ready(function($){
        $('#menu1').superfish({
            delay: 1000,
            speedIn     : 300,
            speedOut    : 100,
            animIn: {marginTop: '10px','opacity':'show','height':'show'},
            animOut: {marginTop: '-10px', 'opacity':'hide','height':'hide'}
        });
        $('#default').superfish();  
    })
Emanuele Greco
  • 12,551
  • 7
  • 51
  • 70