Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-14-2009, 05:52 PM   PM User | #1
jaapoost
New to the CF scene

 
Join Date: Oct 2009
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
jaapoost is an unknown quantity at this point
fadein fadeout gets stuck

I've got the following code to fade in a div, and fade it out when the mouse leaves:

Code:
    $(".portfolio_href").hover(
		function () {
		$(this).children(".image_holder").stop().fadeIn(500);
		}, 
		function () {
		$(this).children(".image_holder").stop().fadeOut(500);
		}
I added the stop(); so it won't continue fading in and out if you ran over it twice in a short period. But the thing is, whenever I leave the element to early, the next time it will not fade to the full 100%, but to the point where I left the element before....

I hope this explains the problem :s

Regards,

Jaap
jaapoost is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:17 AM.


Advertisement
Log in to turn off these ads.