Giter Site home page Giter Site logo

Dropdown menus fade away about superfish HOT 15 CLOSED

joeldbirch avatar joeldbirch commented on September 28, 2024
Dropdown menus fade away

from superfish.

Comments (15)

joeldbirch avatar joeldbirch commented on September 28, 2024

I have managed to recreate your issue and the answer seems to be the version of jQuery you are using. If you update from 1.7.1 the issue will be fixed. Without knowing your site, I'd say the safest version to update to would be 1.7.2, which I have tested and can confirm that it fixes your issue.

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

Thanks for your help. I tried changing it to 1.7.2 and still had a similar issue. Then changed it to 1.9.1 and am still having problems where now the white background drops out after some time (see attached). I don't think anything else in the website uses jquery although there are a couple of other javascripts. I copied the .min. filed and linked it directly, as opposed to having it link through googleapolis.
Would it be helpful to copy/provide code? I feel pretty lost when it comes to this stuff.
Thanks again. menu

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

Huh, strange. I already have test files set up based on your site now, so I should be able to recreate your new issue fairly easily. I'll have another look tomorrow (it's 3am here).

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

Get some sleep! Thanks.

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

I changed it to 1.9.0 and it seems to be better. It took much longer to start messing up. It seems to be the center column most of the time. Most people wouldn't see it since they wouldn't spend as much time playing with as I have been, however, I am afraid to change all the pages until it works right.

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

I've found that this is definitely a Superfish bug with height animations. Can you use animation: {opacity:'show'} until I fix this? It will certainly be at the top of my todo list. I really appreciate you bringing it to my atttention. Thanks.

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

It already says "show". What am I doing to get this problem that others are not? I will change that.

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

Replace this line:
animation: {opacity:'show',height:'show'},

With this line:
animation: {opacity:'show'},

…although I'm working on a proper fix so you can still animate height, as we speaktype.

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

It is already that way.

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

Maybe you have the Superfish initialisation duplicated in two different places, because below is a copy/paste from your site:

<script>
$(document).ready(function() {
$('ul.dropnav').superfish({
delay: 1000,
animation: {opacity:'show',height:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: false
});
});
</script>

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

Oh, I thought you meant in the superfish.js file.

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

Here's a stupid question. Why are these in 2 places. Couldn't these changes be made in the superfish.js and get rid of the ones in the .html file?

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

The settings in the superfish.js file are just defaults. The idea is that you never touch that file and just override the bits you want from outside. Like how you don't need to mess with a car engine to drive down a road. Just use the controls. :)

from superfish.

handygal1956 avatar handygal1956 commented on September 28, 2024

Making this change seems to have solved my problem. Thank you so much for all your help.

from superfish.

joeldbirch avatar joeldbirch commented on September 28, 2024

v1.5.13 fixes the height animation bug.

from superfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.