Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:56:41+00:00 2026-06-10T10:56:41+00:00

I have a page with several image thumbnails that have their opacity set to

  • 0

I have a page with several image thumbnails that have their opacity set to 0.6 until the mouse hovers over it: Then, I animate the opacity to 1.0, and also show a small floater div with the title of the video that follows the cursor. Like this…

CSS:

#theFloater { background-color: #444; color: #FFF; position: absolute; display: none; font-family: Arial, Helvetica, sans-serif; font-size: .85em; z-index:25;}
#reelList img { height: 20px; display: inline-block; margin: 0; z-index: 1}

jQuery:

$('#reelList li').hover(function(){
    $(this).find('img').animate({opacity: 1.0}, 200, function(){});
    $('#theFloater').html(theTitles[$(this).index()]);
    $('#theFloater').show();
}, function(){
    $(this).find('img').animate({opacity: 0.6}, 200, function(){});     
    $('#theFloater').hide();                            
});

var mouseX;
var mouseY;

$("a img").mousemove(function(e){
    mouseX = e.pageX;
    mouseY = e.pageY;
});

frameRate =  30;
timeInterval = Math.round( 1000 / frameRate );

atime = setInterval(function(){ 
    w = $('#theFloater').width() / 2;
    $('#theFloater').css('left', mouseX - w).css('top', mouseY - 35);
}, timeInterval);

This works well, except when the cursor exits the thumbnail, sometimes, the image animates opacity up and down several times in a row, usually twice or three times. If I don’t show the floater div, it works perfectly. For some reason, the floater div has something to do with the oddity.

Anyone have any idea why the floater div causes the thumbnail to animate multiple times?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:56:43+00:00Added an answer on June 10, 2026 at 10:56 am

    The only way I was able to get it to animate multiple times was by moving my mouse on and then off and then back on several times very fast and then stopping – the animations kept going the number of times I had made the switch (an accurate effect).

    I believe what you’re looking for is jQuery’s stop() function which stops the current animations (so they don’t keep building up in numbers – each new animation call stops the previous animations before running).

    In short, swap the $('#reelList li').hover function with this jQuery

    $('#reelList li').hover(function(){
        $(this).find('img').stop().animate({opacity: 1.0}, 200, function(){});
        $('#theFloater').html(theTitles[$(this).index()]);
        $('#theFloater').show();
    }, function(){
        $(this).find('img').stop().animate({opacity: 0.6}, 200, function(){});     
        $('#theFloater').hide();                            
    });
    

    Some more info on stop() over at the jquery.com api reference section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with several Update Panels on it. the url of that
I have a page that has several ajax submission forms. Each form has a
I have a page that contains several forms, by submitting each one of them,
i have a page that contains several submit buttons however i only want one
I have a page that fires several xmlHttp requests (synchronous, plain-vanilla javascript, I'd love
I have a bunch of image thumbnails I'm displaying in a web page. All
I have a C# webbrowser that holds an html page that has several iframes.
I have several pages set up in the same way. Each page has about
I have a page that needs to load several dynamically generated images. Everything works
I have a page that has to render a huge set of query results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.