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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:27:50+00:00 2026-05-27T20:27:50+00:00

I have a roll over effect on a <h3>Some header</h3> and I want the

  • 0

I have a roll over effect on a <h3>Some header</h3> and I want the background to fadein/fadeout nicely on hover.

its normal state is:

h3 {
background: none;
}

and the hover is a css3 animation:

h3:hover {
    background-image: linear-gradient(bottom, #FFFFFF 25%, #FCFCFC 100%);
    background-image: -o-linear-gradient(bottom, #FFFFFF 25%, #FCFCFC 100%);
    background-image: -moz-linear-gradient(bottom, #FFFFFF 25%, #FCFCFC 100%);
    background-image: -webkit-linear-gradient(bottom, #FFFFFF 25%, #FCFCFC 100%);
    background-image: -ms-linear-gradient(bottom, #FFFFFF 25%, #FCFCFC 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.25, #FFFFFF),
        color-stop(1, #FCFCFC)
    );
}

since I have so many rules – I can’t do it in jQuery simple animatie (or can I?).

Can it be done without using any plugins or jQuery ui kits? Or – is it possible to achieve it in a css3 animation? I tried css3 animtation by adding to h3 this code, but it made weird effects and not at all the simple fadein:

h3 {
-webkit-transition: all 0.1s ease-out;  /* Saf3.2+, Chrome */
-moz-transition: all 0.3s ease-out;  /* FF4+ */
-ms-transition: all 0.3s ease-out;  /* IE10? */
-o-transition: all 0.3s ease-out;  /* Opera 10.5+ */
transition: all 0.3s ease-out;
}

thanks,
Alon

  • 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-05-27T20:27:50+00:00Added an answer on May 27, 2026 at 8:27 pm

    You can do it like this with jQuery.

    CSS:

    h3 {
        margin: 10px;
    }
    div.h3_bg {
        background: linear-gradient(bottom, #FF0000 25%, #FCFCFC 100%);
        background: -o-linear-gradient(bottom, #FF0000 25%, #FCFCFC 100%);
        background: -moz-linear-gradient(bottom, #FF0000 25%, #FCFCFC 100%);
        background: -webkit-linear-gradient(bottom, #FF0000 25%, #FCFCFC 100%);
        background: -ms-linear-gradient(bottom, #FF0000 25%, #FCFCFC 100%);
        background: -webkit-gradient(
            linear,
            left bottom,
            left top,
            color-stop(0.25, #FF0000),
            color-stop(1, #FCFCFC)
        );
    }
    

    JavaScript:

    $("h3").each(function() {
        $("body")
            .append(
                $('<div>', {class:"h3_bg"})
                    .width($(this).outerWidth())
                    .height($(this).outerHeight())
                    .hide()
                    .css({
                        position: "absolute",
                        top: $(this).offset().top,
                        left: $(this).offset().left,
                        zIndex: -1
                    })
            );
        $(this).hover(
            function() {
                $("div.h3_bg").eq($(this).index()).fadeIn();
            },
            function() {
                $("div.h3_bg").eq($(this).index()).fadeOut();
            }
       );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some javascript roll over code that works fine in firefox but when
So I have this Div that has a roll over effect on it where
I have made this piece of code that makes a roll hover effect on
I need some help to implement this roll over / out effect. This is
I have a handful of elements I want to set roll overs on, how
I have this weird problem whenever I roll my mouse over each of the
I have a log file currently configured to roll over every hour. When it
I have a piece of code that basically says: if you roll over this
I currently have code to roll over an image link as below: <a id=show
I'm trying to apply an over effect on my photo slider. I have the

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.