You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enter direction not working properly in Firefox #4
I managed to temporally fix this problem, I'm pretty sure there's a better workaround for this, But for now this works fine on FireFox 26
More about this: The problem was, In FireFox, Transition is active and applying even though the "display" property of element is set to "none", By disabling the transition before "mouseenter" event, Resting the hover position and enabling the Transition again, The problem was resolved.
I can confirm there are a couple of errors in this script that prevent correct behavior in Firefox. To be honest seems to me that Firefox behavior is right, I mean it fails because of the errors in the code but Chrome ignores them and does the job.
@woh4wad you're right, that's exactly one of the problems, I just cleared the transition properties right after the mouseenter check and before the new starting position is applied, otherwise FF will execute the animation while the element moves to its new starting position and at that moment is not hidden.
Will pull a request.
Hi woh4wad
Thanks for this awesome plugin, i think the problem is still not fixed in firefox
but there important note : your demo works good on firefox, so i dont know why my direction is not correct in my example :(
i hope to give me feedback
Thanks very much
Activity
dynamick commentedon Feb 7, 2014
same problem :-(
zeronull0null commentedon Feb 8, 2014
You could try using the plugin in my repo: https://github.com/woh4wad/DirectionAwareHoverEffect
I managed to temporally fix this problem, I'm pretty sure there's a better workaround for this, But for now this works fine on FireFox 26
More about this: The problem was, In FireFox, Transition is active and applying even though the "display" property of element is set to "none", By disabling the transition before "mouseenter" event, Resting the hover position and enabling the Transition again, The problem was resolved.
dynamick commentedon Feb 10, 2014
Great! Now it works perfectly!
Well done!
afercia commentedon Feb 18, 2014
I can confirm there are a couple of errors in this script that prevent correct behavior in Firefox. To be honest seems to me that Firefox behavior is right, I mean it fails because of the errors in the code but Chrome ignores them and does the job.
@woh4wad you're right, that's exactly one of the problems, I just cleared the transition properties right after the mouseenter check and before the new starting position is applied, otherwise FF will execute the animation while the element moves to its new starting position and at that moment is not hidden.
Will pull a request.
hamdan-mahran commentedon Jan 2, 2015
Hi woh4wad
Thanks for this awesome plugin, i think the problem is still not fixed in firefox
but there important note : your demo works good on firefox, so i dont know why my direction is not correct in my example :(
i hope to give me feedback
Thanks very much