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 8136615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:49:05+00:00 2026-06-06T10:49:05+00:00

Is it possible to create a jquery fade effect on hover (on an anchor

  • 0

Is it possible to create a jquery “fade” effect on hover (on an anchor with image inside)?

HTML

<ul id="list">
    <li>
        <a target="_blank" href="http://google.com">
            <img src="http://www.littlegiant.co.nz/wp-content/uploads/2012/01/Meccano-293x170.jpg" alt="" />
        </a>
    </li>
</ul>

CSS

#list li a img {
    position: relative;
    z-index: -1;
}

#list li a {
    display: block;
    width: 293px;
    height: 170px;
}
#list li a:hover {
    background: red;
    width: 200px;
    height: 50px;
}

Here is what I have so far: http://jsfiddle.net/ecFBK/4/

When you hover over the red appears which is correct – I just don’t know how to make it fade in using jquery. Please no CSS3 suggestions.

  • 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-06T10:49:07+00:00Added an answer on June 6, 2026 at 10:49 am

    You can fake it by adding an overlay to the link. You’ll need to add position: relative to the link CSS, and remove the a:hover CSS, then you can do something like this for the jQuery:

    $('#list li a').hover(function(ev){
        if (!$(this).find('.hover').length) {
            $('<span class="hover">').css({
                'background-color': 'red',
                'display': 'inline-block',
                'opacity': 0,
                'width': 293,
                'height': 170,
                'position': 'absolute',
                'top': 0,
                'left': 0
            }).appendTo($(this));
        }
        $(this).find('.hover').stop(true, true).animate({'opacity': 1}, 2000);
    }, function(ev){
        $(this).find('.hover').stop(true, true).animate({'opacity': 0}, 1000);
    });
    

    See demo

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

Sidebar

Related Questions

Is it possible to create a html file that can be loaded from jQuery
I was wondering if it's possible to create an image of a div inside
Is there a plugin for jQuery that will create this effect? http://zipbolt.com.au/ I want
Is it possible to create if sentences inside a jQuery tmpl template? <script id=template
Would it be possible to create an effect on a webpage with css/Javascript/jquery etc.
Is it possible to create a jQuery Mobile dialog using inline content within the
Is it somehow possible to create something like a masterpage (asp.net) in jQuery Mobile?
I'm trying to create a fade out / fade in effect with CSS3 animations.
is it possible to create a jQuery function so that it gets current date
I would like to know if this is possible to create an JavaScript/jQuery event

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.