0

I try to create with jquery a simple hover-sliding. Here is my example

My first problem ist the mouseenter is, when a users the duck and while the duck slides up the user is going to mouseenter the cow, the sliding want to show both slides and do ugly stuff (see my expamle - just try it)

Here is my Fiddle

I think there must be a solution, like disable the other mouseenter until the first ended with its sliding.

My second trouble is that every time the page was new loaded (F5), the pictures have to load. (The duck vanished for a second and slide completed up - and the cow slides too fast for the first time) After this "loading" (hovering) the pictures sliding pretty. I already tried to use:

$(window).load(function(){...});

instead of:

$(document).ready(function(){...});

(I tested my second problem already online, its not a jsfiddle problem)

Any other ideas? Thank you in advance!

2
Contributors
1
Reply
13
Views
3 Years
Discussion Span
Last Post by LastMitch
0

My first problem ist the mouseenter is, when a users the duck and while the duck slides up the user is going to mouseenter the cow, the sliding want to show both slides and do ugly stuff (see my expamle - just try it)

@Aleshanee

Where did you get this code? Is this from an tutorial?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.