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

  • SEARCH
  • Home
  • 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 9069621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:28:38+00:00 2026-06-16T17:28:38+00:00

I have made a JSFiddle ( http://jsfiddle.net/wpC57/2 ) that showcases my problem. I want

  • 0

I have made a JSFiddle (http://jsfiddle.net/wpC57/2) that showcases my problem.

I want the #grid-viewer to have display: none; as the page loads. Then when you hover over any of the links I want it to fadeIn and reposition accordingly.

The repositioning is working as intended now but I’m having problems with fading it in and out. It wont fade in again after it has faded out. Any help would be appreciated.

The JavaScript that handles the hovering functions looks like this;

$("a.mainlink").hover(function() {
    var dataTitle = $(this).attr("data-title");
    $("#grid-viewer").stop().fadeIn();
    $("#grid-viewer").stop().animate({
        "left": ($(this).offset().left - $("#grid-view").position().left)
    }, 200);
    $("#grid-text").html(dataTitle);
}, function() {
    $("#grid-viewer").stop().fadeOut();
});
  • 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-16T17:28:39+00:00Added an answer on June 16, 2026 at 5:28 pm

    You maek it visible with: $("#grid-viewer").stop().fadeIn(); but the imediatly stop the fadeIn with $("#grid-viewer").stop().animate({ therefor the opatcity stays 0 and it is hidden.
    Try includeing the fade infunctionality into your animation with like this:

    $("#grid-viewer").stop().animate({
                "display" : "block",
                "opacity": 1,
                "left": ($(this).offset().left - $("#grid-view").position().left)
            }, 200);
    

    Full sample: http://jsfiddle.net/wpC57/7/

    $(document).ready(function() {
        $("a.mainlink").hover(function() {
            var dataTitle = $(this).attr("data-title");
            $("#grid-viewer").show();
            $("#grid-viewer").stop().animate({
                "opacity": 1,
                "left": ($(this).offset().left - $("#grid-view").position().left)
            }, 200);
            $("#grid-text").html(dataTitle);
        }, function() {
            $("#grid-viewer").stop().fadeOut();
        });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a quick fiddle to outline my problem: http://jsfiddle.net/mYdxw/ I'm trying to
I have made a quick fiddle: http://jsfiddle.net/tLLB4/ Ok, so the premise is, i'm hovering
I have made a Fiddle for reference: http://jsfiddle.net/xypQY/ Which element would i apply WebKit
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
I have made a tabbed menu: http://jsfiddle.net/zWMYp/ However when I add it to my
I have made the following fiddle: http://jsfiddle.net/hxQE4/ See how the right arrow pushes the
I have made a fiddle: http://jsfiddle.net/hAzJq/ How can i select the text inside the
I have a small issue, look this collapsing tabble i have made http://jsfiddle.net/hAv7P/12/ If
I have made an example: http://jsfiddle.net/YfV7G/4/ It's a div like this <div id=container> <h2>The
I have made my own drop down here: http://jsfiddle.net/Hunter4854/GJVjT/ I am trying to add

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.